摘要: 修改JS中URL字符串编码:var url = "test.jsp?name=" + name;url = encodeURI(encodeURI(url)); //写一个不行。如果写一个就是????号。修改JSP中字符串解码:String name = request.getParameter("name");name = java.net.URLDecoder.decode(name,"UTF-8");System.out.println(name); 阅读全文
posted @ 2012-08-09 15:08 Lorence Zhang 阅读(557) 评论(0) 推荐(0) 编辑