cpdetector 是一个可以自动检测文本编码格式的项目。
detector按照“谁最先返回非空的探测结果,就以该结果为准”的原则返回探测到的 字符集编码。
使用需要用到三个第三方JAR包:antlr.jar、chardet.jar和cpdetector.jar cpDetector是基于统计学原理的,不保证完全正确。
This release fixes a crash in command line mode when an invalid declared charset (the "" charset) was found. The return code of the command line tool (CodepageProcessor) does not return 0 in case of an error anymore. A bug that broke the ability to reset input streams after detection was fixed
时间:2011-12-05 08:22
来源:开源中国社区
作者:红薯
原文链接