Java简繁体中文互换 java-zhconverter

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/

猜你喜欢

转载自m635674608.iteye.com/blog/2233522
今日推荐