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

藏色散人
Release: 2021-12-31 11:31:26
Original
4296 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template