试试将得到的字符串str转换一下!!
String temp = new String(str.getBytes("ISO-8859-1"),"GBK");

解决方案 »

  1.   

    用String s = new String(s.getBytes("ISO-8859-1"),"GB2312");
      

  2.   

    将UTF-8编码的字符转换成GBK或是GB2312编码的就可以了。
    如;
    String s = new String(s.getBytes("ISO-8859-1"),"GB2312");
    String s = new String(s.getBytes("ISO-8859-1"),"GBK");这样就行了,或是用一个方法来转换。
    public String getStr(String str)
    {
      try
      {
         byte[] temp_t=str.getBytes("ISO-8859-1");
         str=new String(temp_t,"GB2312");
      }
      catch(Exception e)
      {
      System.out.println("iso8859-1 error"+e);
      return null;
      }
      return str;
    }