Garbled characters are displayed in the window after Tomcat starts

Garbled characters are displayed in the window after Tomcat starts

startup.batClick / under bin under the Tomcat installation root directory startup.sh, and the running window displays garbled characters after startup, as shown in the figure below.
insert image description here
This is because the encoding of the running output log information is inconsistent with the encoding used by the operating system. Open the file under conf in the root directory of Tomcat installation logging.properties, and find the attribute that defines the control code java.util.logging.ConsoleHandler.encoding, as shown in the following figure. Change
insert image description here
its value from to as shown in the image below. Save, close, and click / start Tomcat again, and the running result after changing from is shown in the figure below.UTF-8GBK
insert image description here
startup.batstartup.shjava.util.logging.ConsoleHandler.encodingUTF-8GBK
insert image description here

Guess you like

Origin blog.csdn.net/u010804417/article/details/130305910