这样:
String temp = request.getParameter("name");
String name = new String(m_str.getBytes("8859_1"),"GB2312");

解决方案 »

  1.   

    String name = new String(request.getParameter("name").getBytes(""ISO-8859-1""),"GB2312"));
    <%= name %>
      

  2.   

    楼上各位老大
    早就试过以上方法,不行啊。
    你们都用tomcat的什么版本?和apache无关吧?我的apache版本是1.3
      

  3.   


    我是win2000+tomcat4.0
    jsp直接显示传送的汉字参数
    对了 你要在jsp传送头<%@ page contentType="text/html" %> 
    不要加GB2312等之类定义可以参考我的广告banner程序
    www.bqlr.com