摘要:
更改文件的编码,要利用第三方jar包:cpdetector_1.0.10.jar,其中它依赖于jar包:antlr-2.7.4.jar,chardet-1.0.jar,jargs-1.0.jar,注:jar的下载地址为:http://download.csdn.net/detail/kuangfengbuyi/4658378获取文件的编码: 1 public static String guessEncoding(String filePath) { 2 CharsetPrinter cp = new CharsetPrinter(); 3 try { 4 ... 阅读全文