The solution to the Chinese garbled code in idea docker: 1. Open IDEA-HELP; 2. Add the code "-Dfile.encoding=UTF-8"; 3. Restart IDEA.
The operating environment of this article: ubuntu16.04 system, IntelliJ IDEA 2019.2 version, Dell G3 computer.
How to solve the problem of Chinese garbled characters in idea docker?
IDEA-Docker plug-in console Chinese garbled characters
IDEA installed the Docker plug-in, and then if the log in the container contains Chinese, it will be garbled
But when viewing the container in the ssh client The log will not be garbled
This is due to the encoding setting problem of IDEA
Open IDEA- HELP
Add code:
-Dfile.encoding=UTF-8
Recommended learning: "docker video tutorial"
The above is the detailed content of How to solve the problem of Chinese garbled characters in idea docker. For more information, please follow other related articles on the PHP Chinese website!