Tomcat garbled solution

A, Tomcat console Chinese garbled

  The reason the windows are garbled tomcat uses utf-8, and the windows default GBK

  In the conf file in the tomcat directory folder, open the file logging.properties

  Modify the configuration: java.util.logging.ConsoleHandler.encoding = GBK

  Restart tomcat, you can solve the Chinese garbled console.

Two, Tomcat access pages garbled

  Typically, tomcat visit garbled because, tomcat default is utf-8, but web coding format files of the project is GBK (or other) to open the corresponding page number, modify the original file is encoded utf-8.

Guess you like

Origin www.cnblogs.com/linglongfang/p/12568991.html