Skip to content

Can't display Chinese

ref: https://blog.csdn.net/weixin_39792252/article/details/80415550

verified on: docker, webtop - ubuntu-kde 22.04

sudo apt-get install language-pack-zh-hans

append this in /etc/environment

LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh:en_US:en"

touch file /var/lib/locales/supported.d/local and add:

en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
sudo locale-gen
`sudo locale-gen
``

- Install chinese fonts. 

sudo locale-gen ```

  • No need to reboot.