Easily solve the Tomcat garbled problem

Sometimes, after we open Tomcat, we can also open it, but there are garbled problems, chaos...

the reason:

The encoding format set by Tomcat is UTF-8 and
changed to Chinese GBK.

modify:

1. Go to your Tomcat folder and open the conf folder. There is a logging.properties file in this folder .
2. Open that file, there is a sentence
java.util.logging.ConsoleHandler.encoding = UTF-8 in the position of more than 50 lines .
Then change UTF-8 to GBK and save it.
3. Restart Tomcat, it should not be garbled.

Guess you like

Origin blog.csdn.net/qq_42524288/article/details/103827370