用 byte[] strName=returnString.getBytes("ISO-8859-1"); 试试

解决方案 »

  1.   

    不行啊!我用RoleName=<%=java.net.URLEncoder.encode(strName, "ISO-8859-1").getBytes("ISO-8859-1")%>
    又用了RoleName=<%=strName.getBytes("ISO-8859-1")%>都不行!
      

  2.   

    在接受的页面加上:
    (request.getParameter("xxx").getBytes("ISO8859-1"),"GBK");
      

  3.   

    TO: uestc6055(liao)请说明白一些好吗?
    是在我的代码的基础上加还是什么样?请把详细的代码帖出来,谢谢了!
      

  4.   

    get方式中的中文不要转换,直接取!
      

  5.   

    你的问题我以前问过。答案是
    传输之前   String url=new String(url.getBytes("GB2312"),"ISO8859_1");这样在地址栏里中文就正常了,
    要在网页上显示
    String url=new String(url.getBytes("ISO8859_1"),"GB2312");
    就行了,祝你好运!