网络传输用的编码是ISO8859-1,先进行转换
s.getBytes("ISO8859-1");

解决方案 »

  1.   

    如果有报错的话,你将HTTPRIO控件的UseUTF8InHeader属性的false改成true就可以了。
      

  2.   

    String a = new String(b.getBytes("iso-8859-1"),"gb2312");
      

  3.   

    try this!!!!public static String getStr(String str) //转化为中文
      {
          try{
             String temp_p=str;
             byte[] temp_t=temp_p.getBytes("8859_1");
             String temp=new String(temp_t);
             return temp;
            }
            catch(Exception e)
            {
                System.out.println(e.toString());
                return "null";
            }
          
      }
      

  4.   

    zhx_232(笨狗熊妹妹) 是天下第一可爱的mm, 拗到费
      

  5.   

    yefc(yefc) 不如你也给我一点分呀!:)
    呵呵,starryd (starryd) 开了这么多贴,都是同一个问题哦,我真的回答对了,没想到问题这么简单吧!:)
    再结贴好吧,这些分你都不可能收回的!