JAVA中文简繁体转换-ZHConverter

/ Instantiation will fetch the property file which load the Chinese character mappings 

ZHConverter converter = ZHConverter.getInstance(ZHConverter.SIMPLIFIED);

String simplifiedStr = converter.convert("繁�w�D�Q");

            

//String traditionalStr = ZHConverter.convert("简体转换", ZHConverter.TRADITIONAL);


结果:繁体转换


//��w�D�Q


ZHConverter.jar请见附件。

你可能感兴趣的:(ZHConverter,简繁体,JAVA简繁体转换)