String s=new String("gb2312",oper.getBytes("ISO-8829-1"))

解决方案 »

  1.   

    String s=new String("gb2312",oper.getBytes("ISO-8859-1"))
      

  2.   

    1,可能你没有在page指令中加上contentType="text/html;charset=gb2312"
    2.如果还是不行,你试下转码的问题,也就是按楼上的老兄说的去做,
      

  3.   

    String s=new String("gb2312",oper.getBytes("ISO-8859-1"))
    肯定需要转码!
      

  4.   

    String oper = "";
    if (request.getParameter("oper") != null) {
      oper = new String(request.getParameter("oper").getBytes("iso-8859-1"), "GB2312");
    }
      

  5.   

    yunxiang(*****)  哥们是不是把String的构造方法写错了啊。与楼上想的一样。