java-zhconverterJava简繁体中文互换
java-zhconverter是一个简繁体中文互换的Java开源类库。
示例代码:
// Instantiation will fetch the property file which load the Chinese character mappings
ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);
String simplifiedStr = converter.convert("有背光的機械式鍵盤");
// Or
ZHConverter.convert("有背光的机械式键盘", ZHConverter.TRADITIONAL)
评论