简繁体中文互换的Java开源类库的使用
public static void main(String[] args) throws Exception {
ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);
String traditionalSrc = "喬";
String simplified = converter.convert(traditionalSrc);
System.out.println(simplified);
// Or
String simplifiedSrc = "乔";
String traditional = ZHConverter.convert(simplifiedSrc, ZHConverter.TRADITIONAL);
System.out.println(traditional);
}
下载地址:http://download.csdn.net/download/qiaoshuai0920/8879177