url***********?cname=中文
跳转到url所指的页面通过${param.cname},中文变成乱码。
解决方案:<% String x=request.getParameter("cname");x=new String(x.getBytes("iso-8859-1"),"utf-8");out.print(x);%>
url***********?cname=中文
跳转到url所指的页面通过${param.cname},中文变成乱码。
解决方案:<% String x=request.getParameter("cname");x=new String(x.getBytes("iso-8859-1"),"utf-8");out.print(x);%>