About Tomcat Displaying Chinese Page Solutions - -
A few days ago I installed a Tomcat version 4.1.29 in Linux. Static HTM / HTML after running is always display garbled.
But when you view the source file in IE, it is GB2312 encoding, which is the Linux system font problem, but the font has been Chinese font,
What is the reason? It turns out that the default value of the configuration in this version /conf/web.xml is wrong.
To set.
Use VI to open Tomcat 4.1.29 / conf / web.xml View the setting of the type HTM / HTML, set it to GBK
Or GB2312:
htm extension>
text / html; charSet = GB2312 mime-type>
mime-mapping>
HTML extension>
text / html; charSet = GB2312 mime-type>
mime-mapping>