Home > Article > Operation and Maintenance > 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
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!