小弟想用JAVA 开记事本档案
程式码如下:
String str;
FileInputStream fr = new FileInputStream("d:\\bob.txt");
BufferedReader br = new BufferedReader(new
InputStreamReader(fr,"UTF-8")) ;
while ((str = br.readLine()) != null)
System.out.println(str);
br.close();
fr.close();
显示在JAVA的都是乱码 请问要怎么解决?