最简单的方法:
打开记事本,另存为,选择文件编码,当然,文件太大也是难打开。。。。
首先是读文件:
BufferedReader in= new BufferedReader(new InputStreamReader
(new FileInputStream("d:/target/HashTest/123.txt"),"UTF-8"));
然后是输出文件:
BufferedWriter bw3= new BufferedWriter(new OutputStreamWriter
(new FileOutputStream("d:/target/HashTest/output3.txt"),"UTF-8"));