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
也还是乱码?
怎么办?
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]#