request.setCharacterEncoding("GB2312");写了吗?

解决方案 »

  1.   

    写了。
    response.setContentType("text/html;charset=GB2312");
    request.setCharacterEncoding("GB2312");
      

  2.   

    public static String EnToChinese(String s)
       throws UnsupportedEncodingException
    {
    return new String(s.getBytes("8859_1"),"GB2312");
    }
    挺管用的
      

  3.   

    回复wangdongzjk(东)
    一样的问题。
      

  4.   

    问题解决了原来?useUnicode=true&characterEncoding=gb2312是多余的。
    但现在由有一个新的问题,就是为什么reText=张三 或者是李四都可以找到 惟独只有=家庭影院 的
    时候找不到。