我运行你的程序结果是:
name in the page is 测试撒
name from the link is ????jsp??????????
name in the page after convert is ???
name from the link after convert is 测试jsp的中文显示 正常啊.

解决方案 »

  1.   

    to xiaoyou(三尺剑):我的环境是tomcat3.2+win2000+ie5.00.2920.0000
      

  2.   

    我的是win2k+weblogic5.1+ie5.00.2920.0000 
    一般服务器不同,解决中文参数的方法不一样.
    我以前有个贴子说过.http://www.csdn.net/expert/topic/148/148843.shtm
    http://www.csdn.net/expert/topic/147/147247.shtm
    http://www.csdn.net/expert/topic/134/134209.shtm
    http://www.csdn.net/expert/topic/116/116796.shtm
      

  3.   

    我这里运行也没有问题呀?呵呵,这段代码好像很熟呀,连变量都和我的一模一样,
    public String getStr(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";
    }
      

  4.   

    ?后的中文要用
    <% @ import="java.net.*" %>
    String str="中文";
    test.jsp?<%=URLEncoder.encode(str)%>
    另外有些服务器,只要用了<%@ page contentType="text/html;charset=gb2312" %> ,
    就不要再做转换,否则就是画蛇添足。
      

  5.   

    name in the page is 测试撒 
    name from the link is 测试jsp的中文显示 
    name in the page after convert is ??? 
    name from the link after convert is ??jsp?????