java读取文件免除乱码

public static void main(String[] args) {
  String file = "D:\\Desktop\\测试.txt";
  String encode=EncodingDetect.getJavaEncode(file);
  System.out.println(encode);
}


猜你喜欢

转载自yuhuiblog6338999322098842.iteye.com/blog/2185201