rhel5.2后,中文网页是乱码

football2006
rhel5.2后,中文网页是乱码

第一次安装rhel5.2后,中文网页是乱码,安装了fonts-chinese-3.02-12.el5.noarch.rpm就好了。


第二次安装rhel5.2后,也安装了fonts-chinese-3.02-12.el5.noarch.rpm
确发现还是乱码
之后修改/etc/sysconfig/i18n,语言字符集应该改为zh_CN.UTF-8
也还是乱码?


怎么办?

cnjnhu
重新启动系统了没?

firefox 里面设置 view-character encoding -gb2312

football2006
不光是网页是乱码,整个系统中的汉字都是麻将字

cst05001
麻将字?
应该是系统无对自己的r权限,或者找不到字体。

对字体rpm用--force强装看看?
然后再ls一下字体文件夹,看看字体的权限。
还有,fc-cache -fv刷下字体看看

football2006
我用yum install fonts-chinese来安装的

football2006
字体文件夹在 哪里?

cst05001
[quote]原帖由 [i]football2006[/i] 于 2008-6-28 23:09 发表 [url=http://linux.chinaunix.net/bbs/redirect.php?goto=findpost&pid=6630700&ptid=1013667][img]http://linux.chinaunix.net/bbs/images/common/back.gif[/img][/url]
字体文件夹在 哪里? [/quote]
似乎是在/usr/share/fonts
里面
你ls看看
我正在win下-__-
每当期末,总是要给老师逼回windows。

football2006
我现在换个硬盘,进rhel5去看看

football2006
[root@localhost fonts]# ls -l
total 48
drwxr-xr-x 2 root root 4096 Jun 29  2008 bitmap-fonts
drwxr-xr-x 2 root root 4096 Jun 29  2008 bitstream-vera
drwxr-xr-x 4 root root 4096 Jun 29 06:12 chinese
drwxr-xr-x 4 root root 4096 Jun 29  2008 default
drwxr-xr-x 2 root root 4096 Jun 29  2008 dejavu-lgc
drwxr-xr-x 2 root root 4096 Jun 29  2008 liberation
drwxr-xr-x 3 root root 4096 Jun 29 06:12 zh_TW
[root@localhost fonts]# cd chinese
[root@localhost chinese]# ls -l
total 8
drwxr-xr-x 2 root root 4096 Jun 29 06:12 misc
drwxr-xr-x 2 root root 4096 Jun 29 06:12 TrueType
[root@localhost chinese]#

football2006
[root@localhost fonts]# fc-cache -fv
/usr/share/fonts: caching, 0 fonts, 7 dirs
/usr/share/fonts/bitmap-fonts: caching, 31 fonts, 0 dirs
/usr/share/fonts/bitmap-fonts: failed to write cache
/usr/share/fonts/bitstream-vera: caching, 10 fonts, 0 dirs
/usr/share/fonts/bitstream-vera: failed to write cache
/usr/share/fonts/chinese: caching, 0 fonts, 2 dirs
/usr/share/fonts/chinese/TrueType: caching, 2 fonts, 0 dirs
/usr/share/fonts/chinese/misc: caching, 1 fonts, 0 dirs
/usr/share/fonts/default: caching, 0 fonts, 2 dirs
/usr/share/fonts/default: failed to write cache
/usr/share/fonts/default/Type1: caching, 35 fonts, 0 dirs
/usr/share/fonts/default/Type1: failed to write cache
/usr/share/fonts/default/ghostscript: caching, 8 fonts, 0 dirs
/usr/share/fonts/default/ghostscript: failed to write cache
/usr/share/fonts/dejavu-lgc: caching, 21 fonts, 0 dirs
/usr/share/fonts/dejavu-lgc: failed to write cache
/usr/share/fonts/liberation: caching, 12 fonts, 0 dirs
/usr/share/fonts/liberation: failed to write cache
/usr/share/fonts/zh_TW: caching, 0 fonts, 1 dirs
/usr/share/fonts/zh_TW/TrueType: caching, 1 fonts, 0 dirs
/usr/share/X11/fonts/Type1: caching, 29 fonts, 0 dirs
/usr/share/X11/fonts/Type1: failed to write cache
/usr/share/X11/fonts/OTF: skipping, no such directory
/root/.fonts: skipping, no such directory
/var/cache/fontconfig: cleaning cache directory
/root/.fontconfig: not cleaning unwritable cache directory
fc-cache: failed
[root@localhost fonts]#

football2006
终于出来了,

我在登录界面的 Session中选择KDE.
然后再登录就好了

football2006
到底是怎么样弄好的?自己都糊了

可能还是 fc-cache -fv起作用了

另外:kde和 GNOME有什么区别?