When Tomcat starts, console, and the console Chinese garbled solution IDEA

When Tomcat startup console Chinese garbled

  • cmd console



  • IDEA Console



solution

  • cmd garbled
    • Open the apache-tomcat-8.5.47 \ conf \ logging.properties files in the Tomcat directory
    • Probably about 50 at the location of the line, it will be java.util.logging.ConsoleHandler.encoding = UTF-8assigned to GBK



  • Idea garbled
    • In Idea interface Help-> Edit Custom VM Options
    • In the last line of code to open an additional document -Dfile.encoding=UTF-8to

Guess you like

Origin www.cnblogs.com/wuyiz/p/11888562.html