rhel6乱码,RHEL 指令帮助/说明 中文乱码

错误信息:
[knityster@rhel5 ~]$ date
2009骞� 08��� 11��� ������浜� 19:29:17 CST
[knityster@rhel5 ~]$ export LANG=zh_CN.GB2312
[knityster@rhel5 ~]$ date
2009年 08月 11日 星期二 19:33:16 CST
[knityster@rhel5 ~]$ su -
口令:
[root@rhel5 ~]# date
2009骞� 08��� 11��� ������浜� 19:33:36 CST
[root@rhel5 ~]# export LANG=zh_CN.GB2312
[root@rhel5 ~]# date
2009年 08月 11日 星期二 19:33:42 CST
[root@rhel5 ~]#

解决办法:

添加 export LANG=zh_CN.GB2312 到相应用户到 .bash_profile中
终极办法:
(注意: 执行该指令后会立即重启系统,请在执行前关闭/备份相关文件和数据)
用命令 sys-unconfig 重新设置系统默认语言
Tags:  rhelyum rhel4 rhel5 rhel6 rhel6乱码

延伸阅读

最新评论

发表评论