解決BufferedReader BufferedWrite 讀寫UTF-8文件中文亂碼

解決BufferedReader讀取UTF-8文件中文亂碼
         File rst01 = new File(context.getRealPath("/")+"zljb0.html");
         File rst02 = new File(context.getRealPath("/")+"zljb.html");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);web

讀寫編碼需一致編碼

相關文章
相關標籤/搜索