Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Chinese in the image? #6

Closed
xgy560501 opened this issue Jun 18, 2020 · 1 comment
Closed

How to use Chinese in the image? #6

xgy560501 opened this issue Jun 18, 2020 · 1 comment

Comments

@xgy560501
Copy link

How to use Chinese in the image?

@ziyiluo
Copy link
Contributor

ziyiluo commented Jun 18, 2020

It's the same as using Chinese characters in other docker images. You just need to set the environment variable LC_ALL to C.UTF-8:

# HW.java prints 你好
bash-4.2# java HW
??
bash-4.2# export LC_ALL=C.UTF-8
bash-4.2# java HW
你好

Ref: link.

@ziyiluo ziyiluo closed this as completed Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants