标签:arch back code send 乱码 nbsp null arc sea
1.编码XMLHttpRequest
//建立连接 xmlhttp.open("get","${pageContext.request.contextPath}/servlet/searchMenuServlet?name="+encodeURI(encodeURI(name))); //发送请求 xmlhttp.send(null);
2.解码Servlet
String name = request.getParameter("name");
name=URLDecoder.decode( name,"UTF-8");
标签:arch back code send 乱码 nbsp null arc sea
原文地址:http://www.cnblogs.com/youwillsee/p/6671167.html