乱码问题归根结底是编码问题,写入文件编码和读取文件编码,处理好即可
读取文件自定义编码
fis = new FileInputStream(file);
isr = new InputStreamReader(fis,"utf-8");
br = new BufferedReader(isr);
写入文件自定义编码
fos = new FileOutputStream(file);
pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(fos,"utf-8")));
以上处理即可解决编码问题!!!!!!!!!!!!