SUSE 中文是乱码

 

http://www.wo81.com/tec/os/suse/2014-04-30/186.html
 
操作系统:SUSE Linux Enterprise 11
问题:vi 打开文件,中文是乱码,输入的中文是乱码。
解决办法:编辑 /etc/sysconfig/language , 修改RC_LANG 和 RC_LC_ALL
当前值:
# Local users will get RC_LANG as their default language, i.e. the
# environment variable $LANG . $LANG is the default of all $LC_*-variables,
# as long as $LC_ALL is not set, which overrides all $LC_-variables.
# Root uses this variable only if ROOT_USES_LANG is set to "yes".
#
RC_LANG="zh_CN.UTF-8"
## Type:        string
## Default:     ""
#
# This variable will override all LC-variables!!
# Again, ROOT_USES_LANG must be set to "yes", if an effect on the superuser
# account is desired.
#
RC_LC_ALL=""
修改后的值:
RC_LANG="zh_CN.GBK"
RC_LC_ALL="zh_CN.GBK"
或者在/etc/sysconfig/language最后增加如上两行覆盖前面的配置也可以!
 
 
 
 
posted @ 2019-12-03 10:54  kelelipeng  阅读(1567)  评论(0编辑  收藏  举报