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