解決BufferedReader读取UTF-8文件中文乱码

解決BufferedReader读取UTF-8文件中文乱码
         File rst01 = new File(context.getRealPath("/")+"zljb0.html");
         File rst02 = new File(context.getRealPath("/")+"zljb.html");

InputStreamReader isr = new InputStreamReader(new FileInputStream(rst01), "UTF-8");
         BufferedReader reader = new BufferedReader(isr);
         OutputStreamWriter writerStream = new OutputStreamWriter(new FileOutputStream(rst02),"UTF-8");
         BufferedWriter writer = new BufferedWriter(writerStream);

读写编码需一致

上一篇:MellPlayer, 基于网易云歌单的命令行播放器


下一篇:《NLTK基础教程》译者序