Recently encountered Tomcat4.1.29 Chinese display garbled, solution
For JSP:
method 1.
Change the Default Charset in Tomcat to you, then recompile Tomcat code. Method 2. Add to the file header
<% @ Page ContentType = "text / html" PageEncoding = 'GB2312'%>
Or <% @ Page ContentType = "text / html; charset = GB2312"%>
Add:
<% Request.SetCharacterencoding ("GBK");%>
For HTM:
Plus in tomcat_home / conf / web.xml
mime-mapping>
mime-mapping>
In order to make the default JSP can add the code with GB2312 encoding method
init-param>
init-param>
init-param>
servlet>