Linux中文显示乱码
shell
一、查看系统是否安装中文语言包bash
说明已经安装了ide
二、xshell 的编码设置成UTF-8编码
三、修改配置文件/etc/sysconfig/i18nblog
LANG="zh_CN.utf-8"utf-8
LANGUAGE="zh_CN.UTF-8:zh_CN"get
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"it
SYSFONT="lat0-sun16"class
而后保存退出。乱码
四、source /etc/sysconfig/i18n
此时系统能够正常显示中文了。
五、echo 'source /etc/sysconfig/i18n' >> ~/.bash_profile