Home  >  Article  >  Operation and Maintenance  >  What should I do if the docker container has Chinese garbled characters?

What should I do if the docker container has Chinese garbled characters?

王林
王林Original
2020-05-20 10:41:593886browse

What should I do if the docker container has Chinese garbled characters?

First execute the following command to check the language environment of the container

locale -a

What should I do if the docker container has Chinese garbled characters?

Since C.UTF-8 can support Chinese, you only need Just set the container encoding to C.UTF-8.

Permanent modification method:

Then edit the Dockerfile and add the following content to the Dockerfile.

ENV LANG C.UTF-8

Recommended tutorial: docker tutorial

The above is the detailed content of What should I do if the docker container has Chinese garbled characters?. 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