Java简繁体中文互换 java-zhconverter

端木明贤
2023-12-01

ava-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)

 

http://www.oschina.net/p/java-zhconverter/

 类似资料: