1.问题描述
系统在Tomcat7下一只正常运行,最近新申请了一台服务器,Tomcat版本为8.0,之后就出现了凡是接口参数中有中文的都无法正常调用,查看日志后发现中文变为乱码。
2.问题原因
Tomcat7中对URIEncoding设置为:
This specifies the character encoding used to decode the URI bytes, after %xx decoding the URL. If not specified, ISO-8859-1 will be used.
意思就是如果不特殊设置,就使用ISO-8859-1。
Tomcat8中对URIEncoding设置为:
This specifies the characte