About Tomcat Displaying Chinese Page Code Solutions

xiaoxiao2021-03-06  50

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

text / html; charSet = GB2312

HTML

text / html; charSet = GB2312

转载请注明原文地址:https://www.9cbs.com/read-81900.html

New Post(0)