前台JSP文件传值时编码
encodeURIComponent(encodeURIComponent(中文参数值));
Servet接收值时解码
URLDecoder.decode(参数名称,"UTF-8");前台JSP文件传值时编码
encodeURIComponent(encodeURIComponent(中文参数值));
Servet接收值时解码
URLDecoder.decode(参数名称,"UTF-8");转载于:https://www.cnblogs.com/caowei-it/p/4145763.html