tomcat tomcat start the program and start the program garbled gibberish title treatment

Start running text garbled:

solution:

Find logging.properties file folder Tomcat conf directory,

Logging.properties open the file, find the file java.util.logging.ConsoleHandler.encoding = UTF-8,

Will be one of UTF-8 instead GBK, save restart Tomcat service, you will see just after the start of garbage have been converted over.

 

Rename tomcat start the program title garbled treatment:

Modify the file path: apache-tomcat-9.0.27 \ bin \ catalina.bat, use notepad ++ open, find the need to modify the title of the place:

 

 

Save after conversion to ANSI encoding, default is UTF-8 encoding, notepad ++ code by modifying the Format menu, restart tomcat. The title is modified and will not be garbled.

 

 

 

 

 

 

 

 

 

 

 

 



Guess you like

Origin www.cnblogs.com/pengjt/p/11771800.html