参数是按ISO8859传的,需要转马.

解决方案 »

  1.   

    <% request.setCharacterEncoding("GBK"); %>
    这一句不要,有些服务器版本不支持!
    String a = request.getParameter("b");
     a =new String(a.getBytes("ISO8859-1"));
      

  2.   

    String myText=request.getParameter("name");
        myText=new String(myText.getBytes("ISO-8859-1"),"GBK");
        out.print(myText);
    这样子试试,应该可以吧,因为我也刚好碰到这个东东,我就是这么搞好的!!
      

  3.   

    刚才搞定了,非常感谢! 但我想, 但为什么在tomcat4上面没有这个问题,而我在tomcat5上却产生了这个问题呢?