1. 数据库及字段的编码: UTF-8
2. JSP页面: UTF-8
3. Tomcat UTF-8
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionTimeout="20000"
redirectPort="8443" />
如果上述编码不一致,页面显示会出现乱码。
1. 数据库及字段的编码: UTF-8
2. JSP页面: UTF-8
3. Tomcat UTF-8
<Connector port="8080" protocol="HTTP/1.1" URIEncoding="UTF-8"
connectionTimeout="20000"
redirectPort="8443" />
如果上述编码不一致,页面显示会出现乱码。