java 生产txt文本,文本内容编码是gbk,但是用记事本打开却是utf-8,y文字出现乱码,比如“钱某某”
PrintWriter pw = new PrintWriter(new OutputStreamWriter(new FileOutputStream("D:/txtFile/121EXPORTTRADEINFO.txt"),"GBK"));
pw.write("钱某某");
pw.flush();
pw.close();
这个怎么办?有高手吗?