查看Linux系統字符集spa
- [root@localhost ~]# echo $LANG
修改Linux系統字符集
[root@localhost sysconfig]# cd /etc/sysconfig/
[root@localhost sysconfig]# vi i18n
修改成:LANG=」zh_CN.GBK」
保存退出(wq)
若從新啓動系統界面出現亂碼,在系統安裝安裝找到it
fonts-chinese-3.02-12.el5.noarch.rpm
fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm
若重啓若是仍是亂碼,進入fonts安裝路徑class
[root@localhost ~]# cd /usr/share/fonts/
[root@localhost ~]# fc-cache -fv
重啓亂碼