首页 > 其他 > 详细

easyUI form sumit 中文乱码

时间:2016-08-06 08:27:20      阅读:162      评论:0      收藏:0      [点我收藏+]

jsp 编码方式:

 pageEncoding="UTF-8"

tomcat 编码方式:

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

====================================================

原因:

编码不一致导致。

依据:

This specifies the character encoding used to decode the URI bytes, after %xx decoding the URL. If not specified, UTF-8 will be used unless the org.apache.catalina.STRICT_SERVLET_COMPLIANCE system property is set totrue in which case ISO-8859-1 will be used.

解决问题方式:

<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>

 

 

知识扩展

http://tomcat.apache.org/tomcat-8.0-doc/config/http.html

easyUI form sumit 中文乱码

原文:http://www.cnblogs.com/zno2/p/4761303.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!