加上,可能是默认的有问题
request.setCharacterEncoding("gb2312");
试试

解决方案 »

  1.   

    new String(request.getParameter("yourname").getBytes("ISO8859_1"),"gb2312");
      

  2.   

    同意 beyond_xiruo(CSDN腐败团团长)
      

  3.   

    写了一个method()可以解决你的问题public String chgStr(String str)
    {
    try 
    {
    String temp_p=str;
    byte[] temp_t=temp_p.getBytes("ISO8859-1");
    String temp=new String(temp_t);
    return temp;
    }
    catch(Exception e)
    {
    return null;
    }
    }