IDEA console solves the garbled problem:
1: Open the Intelliidea installation path, find the idea.exe.vmoption file in IntelliJIDEA15.0.6\bin, open it, and fill in the last line: "-Dfile.encoding=utf-8", as shown in the figure, save it.
2: Set the idea file encoding. Find "File->settings->Search File Encodeing" in the menu bar to set utf-8. as the picture shows
3: Set the code of the idea server. Find "run->editconfigration" in the menu bar, find the "server" tab and set the vm option to -Dfile.encoding=utf-8, r as shown in the figure
4. Restart! ! ! ! ! ! ! ! ! !