用reader支持unicode,自然就可以显示中文了BufferedReader br=new BufferedReader(new File("open.txt"));String inFile;
.............
.............
.............

解决方案 »

  1.   

    你用的是哪个版本,怎么会出现乱码,一般不会出现的
    你写个类
    class ChineseTrans
    {
    public static String toChinese(String strvalue)
       {
             try{
                 if(strvalue==null)
                    return null;
                 else
                 {
                    strvalue = new String(strvalue.getBytes("ISO8859_1"), "UTF-8");
                    return strvalue;
             }
             }catch(Exception e){
                   return null;
             }
       }
    }   
    把程序改下试试
    RandomAccessFile openFile=new RandomAccessFile("open.txt","r");
    String inFile;
    inFile=ChineseTrans.toChinese(openFile.readLine());
    while(inFile!=null)
    {
       System.out.print(inFile);
       inFile=ChineseTrans.toChinese(openFile.readLine());
    }
    openFile.close();
      

  2.   

    我用的是1.4版的。按kypfos(大学里没有回忆)解决问题了,不过new File("open.txt")应该是new FileReader("open.txt")。