Home>Article>Operation and Maintenance> How to solve the problem of Chinese garbled characters in idea docker

How to solve the problem of Chinese garbled characters in idea docker

藏色散人
藏色散人 Original
2021-12-31 11:30:44 4213browse

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.

How to solve the problem of Chinese garbled characters in idea docker

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

1. Garbled description

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
How to solve the problem of Chinese garbled characters in idea docker
How to solve the problem of Chinese garbled characters in idea docker

2. Solution:

This is due to the encoding setting problem of IDEA

Open IDEA- HELP
How to solve the problem of Chinese garbled characters in idea docker

Add code:

-Dfile.encoding=UTF-8

How to solve the problem of Chinese garbled characters in idea docker

3. Restart IDEA and the console returns to normal!

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn