Solution of Chinese garbled code in idea integrated Tomcat console

ShadowCK 2021-10-14 07:59:28

step

  1. Edit Configurations:
    image.png
    stay VM options Add :

    -Dfile.encoding=UTF-8

    image.png

  2. File -> Settings -> Editor -> File Encodings:
    image.png
    Pictured , Set to UTF-8:
    image.png
  3. Help -> Edit Custom VM Options:
    image.png
    stay idea64.exe.vmoptions Add... To the last line of the document :

    -Dfile.encoding=UTF-8
  4. restart IDEA.

Reference resources

idea Integrate tomcat And solve the problem of console garbled code

Please bring the original link to reprint ,thank
Similar articles