添加了过滤器后,提交采用get请求时,仍然出现了中文乱码,怎么处理?
修改tomcat安装目录下的conf/server.xml文件,添加相关字符编码的指定:
URIEncoding="UTF-8"
例如 :
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
添加了过滤器后,提交采用get请求时,仍然出现了中文乱码,怎么处理?
修改tomcat安装目录下的conf/server.xml文件,添加相关字符编码的指定:
URIEncoding="UTF-8"
例如 :
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>