免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 4780 | 回复: 11
打印 上一主题 下一主题

[桌面系统] rhel5.2后,中文网页是乱码 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-28 17:45 |只看该作者 |倒序浏览
第一次安装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
也还是乱码?


怎么办?

论坛徽章:
0
2 [报告]
发表于 2008-06-28 19:01 |只看该作者
重新启动系统了没?

firefox 里面设置 view-character encoding -gb2312

论坛徽章:
0
3 [报告]
发表于 2008-06-28 22:58 |只看该作者
不光是网页是乱码,整个系统中的汉字都是麻将字

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
4 [报告]
发表于 2008-06-28 23:06 |只看该作者
麻将字?
应该是系统无对自己的r权限,或者找不到字体。

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

论坛徽章:
0
5 [报告]
发表于 2008-06-28 23:08 |只看该作者
我用yum install fonts-chinese来安装的

论坛徽章:
0
6 [报告]
发表于 2008-06-28 23:09 |只看该作者
字体文件夹在 哪里?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
7 [报告]
发表于 2008-06-28 23:09 |只看该作者
原帖由 football2006 于 2008-6-28 23:09 发表
字体文件夹在 哪里?

似乎是在/usr/share/fonts
里面
你ls看看
我正在win下-__-
每当期末,总是要给老师逼回windows。

论坛徽章:
0
8 [报告]
发表于 2008-06-28 23:10 |只看该作者
我现在换个硬盘,进rhel5去看看

论坛徽章:
0
9 [报告]
发表于 2008-06-28 23:18 |只看该作者
[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]#

论坛徽章:
0
10 [报告]
发表于 2008-06-28 23:18 |只看该作者
[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]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP