String x=new String(s.getBytes("8859_1"),"GBK");  ?

解决方案 »

  1.   

    String x=new String(s.getBytes("iso-8859-1"),"GB2312"); 
    String x=new String(s.getBytes(),"GB2312"); 多试试!肯定可以!
      

  2.   

    String x=new String(s.getBytes("iso-8859-1"),"GB2312"); 
    String x=new String(s.getBytes(),"GB2312"); 多试试!肯定可以!
      

  3.   

    应该是:
    String x=new String(s.getBytes("iso-8859-1"),"GBK");
      

  4.   

    从request对象中取到的那样表现的乱码,一定是GB2312的:)
      

  5.   

    pj兄,如何确定编码呢?
    x.append("\nContent Type: "+req.getContentType());
    x.append("\nEncoding : "+req.getCharacterEncoding()); result:
    null (sometime is '.. applicaiton-www-...' as post)
    null