日期:2014-05-16 浏览次数:20356 次
javascript中向后台传值 中文是乱码解决方法,
?
前台
url=encodeURI(encodeURI(url)); // document.location.href=url;
?后台
//HttpServletRequest request = ServletActionContext.getRequest(); //String le2 = request.getParameter("le2"); le2 = java.net.URLDecoder.decode(le2 , "UTF-8");
?
?
原文链接
http://www.code286.com/article/20104/ArticleView520_1.htm