Centos7支持中英文字符集的相互切换

1.locale命令查看系统字符集

Centos7支持中英文字符集的相互切换

2.cat /etc/locale.conf

当前系统为英文字符,需要切换到中文字符

Centos7支持中英文字符集的相互切换

3.echo "LANG=zh_CN.utf8" > /etc/locale.conf

cat /etc/locale.conf

Centos7支持中英文字符集的相互切换

4.重启系统 reboot

5.中文切换英文是一样操作步骤