Java Web

Tomcat乱码解决

Output乱码解决

找到java.util.logging.ConsoleHandler.encoding = UTF-8

将其注释掉

#java.util.logging.ConsoleHandler.encoding = UTF-8

或者将UTF-8改为GBK

java.util.logging.ConsoleHandler.encoding = GBK

Tomcat Localhost Log 乱码解决

找到localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8

将其注释掉

#localhost.org.apache.juli.AsyncFileHandler.encoding = UTF-8

或者将UTF-8改为GBK

localhost.org.apache.juli.AsyncFileHandler.encoding = GBK

Tomcat Catania Log 乱码解决

找到catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8

将其注释掉

#catalina.org.apache.juli.AsyncFileHandler.encoding = UTF-8

或者将UTF-8改为GBK

catalina.org.apache.juli.AsyncFileHandler.encoding = GBK

页面乱码

image 102

-Dfile.encoding=UTF-8

发表评论