Jeu de caractères de changement du système Kylin

1. Affichez le jeu de caractères système actuel et
affichez-le sous la forme zh_CN.UTF-8

[root@localhost 桌面]# locale
LANG=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

Afficher tous les jeux de caractères pris en charge par le système locale -a
Filtrer le jeu de caractères de Chinese_Mainlandlocale -a | grep zh_CN

[root@localhost ~]# locale -a | grep zh_CN
zh_CN
zh_CN.gb18030
zh_CN.gb2312
zh_CN.gbk
zh_CN.utf8

2. Le fichier de jeu de caractères modifiable est
zh_CN.GB2312, zh_CN.GB18030 ou zh_CN.UTF-8 ou même le jeu de caractères en_US.UTF-8 dans English_United States, etc.
Voici un exemple de modification de zh_CN.GB18030

[root@localhost ~]# vim /etc/locale.conf 
LANG="zh_CN.GB18030"

source /etc/locale.conf prend effet. Après
le changement, vous devez redémarrer la machine

Je suppose que tu aimes

Origine blog.csdn.net/qq_17576885/article/details/123226993
conseillé
Classement