Java in docker displays Chinese garbled characters

Release: 2020-04-03 14:35:02
Original
2897 people have browsed it

Java in docker displays Chinese garbled characters

Docker's java displays garbled Chinese characters solution:

Execute the following command

sudo apt-get -y install language-pack-zh-hans
Copy after login

or

sudo apt-get -y install language-pack-zh-hans language-pack-zh-hans-base
Copy after login

If you want to support traditional Chinese characters , then execute the following command

sudo apt-get -y install language-pack-zh-hant
Copy after login

or

sudo apt-get -y install language-pack-zh-hant language-pack-zh-hant-base
Copy after login

Environment variables can be used

export LC_ALL=zh_CN.UTF-8

DockerFile can use

ENV LC_ALL zh_CN.UTF-8

For more related tutorials, please pay attention to the docker tutorial column on the PHP Chinese website.

The above is the detailed content of Java in docker displays 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!