tomcat server.xml 添加URIEncoding="UTF-8" 后 jsp 页面传中文乱码

js传参:?text=encodeURIComponent(encodeURIComponent("呵呵"));

action 解码:

String text=request().getParameter("text");
text=URLDecoder.decode(text,"utf-8");

这样就可以了

原文地址:https://www.cnblogs.com/jiaobaobao/p/8534565.html