How to?

Can't display Chinese

Jul 12, 2024
osubuntulocale-font
1 Minutes
39 Words
This article was last updated on May 27, 2026 and some of the information may no longer be applicable due to the passage of time.

Can’t display Chinese

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

verified on: docker, webtop - ubuntu-kde 22.04

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

append this in /etc/environment

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

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

1
en_US.UTF-8 UTF-8
2
zh_CN.UTF-8 UTF-8
1
sudo locale-gen
2
`sudo locale-gen
3
``
4
5
- Install chinese fonts.

sudo locale-gen

1
- No need to reboot.
Article title:Can't display Chinese
Article author:Julyfun
Release time:Jul 12, 2024
Copyright 2026
Sitemap