System.in如何使用UTF-8?# Java - 爪哇娇娃
b*i
1 楼
BufferedReader reader = new BufferedReader( new InputStreamReader( System.in
, "UTF-8" ) );
String line = reader.readLine();
System.out.println(line);
运行输入
我
结果是乱码,怎么办?
, "UTF-8" ) );
String line = reader.readLine();
System.out.println(line);
运行输入
我
结果是乱码,怎么办?