用的是tomcat服务器(默认按ISO-8859-1解析url)
客户端:
var url="http://127.0.0.1:8080/test/index.jsp?name=张三"
url = encodeURI(url);
接收端:
String name= new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");
用的是tomcat服务器(默认按ISO-8859-1解析url)
客户端:
var url="http://127.0.0.1:8080/test/index.jsp?name=张三"
url = encodeURI(url);
接收端:
String name= new String(request.getParameter("name").getBytes("ISO-8859-1"),"UTF-8");