FileInputStream fs=new FileInputStream(fileName);
InputStreamReader reader=new InputStreamReader(fs,"MS950");
"MS950"表示你机器的繁体编码

解决方案 »

  1.   

    楼上我也不行
        try{
          FileInputStream in00 = new FileInputStream("zq1.ini");//zq1.ini有繁体编码
          DataInputStream in0 = new DataInputStream(in00);
          String aline;
          while (null != (aline = in0.readLine())) {
            String msg=new String(aline.getBytes(),"BIG5");
            JOptionPane.showMessageDialog((Component) nullmsg, "提示" ,   JOptionPane.INFORMATION_MESSAGE);//显示乱码
        }catch (IOException e1) {}