当前位置:操作系统 > Unix/Linux >>

fedora中文显示乱码要怎么办

进行如下配置即可:

我的Fedora core 4 ,环境如下:
[root@localhost ~]# locale
LANG=zh_CN.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME=zh_CN.UTF-8
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES="zh_CN.UTF-8"
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=
[root@localhost ~]#

/etc/sysconfig/i18n的设置如下:
#LANG="zh_CN.UTF-8"
#SYSFONT="latarcyrheb-sun16"
LANG=zh_CN.GB18030
LANGUAGE=en_US.UTF-8
LC_CTYPE=zh_CN.GB18030
LC_TIME=en_US.UTF-8

这种也试过:
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_TIME=zh_CN.UTF-8

CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,