This commit is contained in:
xiangwbs
2018-03-08 22:39:39 +08:00
parent 1f32922be2
commit b555e7d694
2 changed files with 48 additions and 1 deletions
@@ -66,7 +66,7 @@ public class IODemo {
*/
InputStreamReader isr = new InputStreamReader(fis, "utf-8");
OutputStreamWriter osw = new OutputStreamWriter(fos, "gbk");
int leng = 1;
int leng;
while ((leng = isr.read()) != -1) {
osw.write(leng);
}