javascript向后台全传值后中文乱码解决方法

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

你可能感兴趣的:(JavaScript)