1
2
3
|
# User specific environment and startup programs LANG=zh_CN.UTF8 export LANG
|
修改后查看当前设置:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[root@Betty ~] # locale
LANG=zh_CN.UTF8 LC_CTYPE= "zh_CN.UTF8"
LC_NUMERIC= "zh_CN.UTF8"
LC_TIME= "zh_CN.UTF8"
LC_COLLATE= "zh_CN.UTF8"
LC_MONETARY= "zh_CN.UTF8"
LC_MESSAGES= "zh_CN.UTF8"
LC_PAPER= "zh_CN.UTF8"
LC_NAME= "zh_CN.UTF8"
LC_ADDRESS= "zh_CN.UTF8"
LC_TELEPHONE= "zh_CN.UTF8"
LC_MEASUREMENT= "zh_CN.UTF8"
LC_IDENTIFICATION= "zh_CN.UTF8"
LC_ALL= [root@Betty ~] #
|
- 字符编码设置为 utf-8 。
- 字体设置,选择中文字体,例如新宋体。