/ Instantiation will fetch the property file which load the Chinese character mappings
ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);
String simplifiedStr = converter.convert("繁體轉換");
//String traditionalStr = ZHConverter.convert("简体转换", ZHConverter.TRADITIONAL);
结果:繁体转换
//簡體轉換
ZHConverter.jar请见附件。
转载于:https://blog.51cto.com/jiangjianguang/1428524