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

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

王林
Release: 2020-05-20 10:41:59
Original
3955 people have browsed it

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

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

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!

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