Firefox浏览Flash网页乱码的解决方案

Posted on 2010-02-14 22:01  whhacker  阅读(400)  评论(0编辑  收藏  举报

已经安装了中文包 但是在访问一些网站时 发现flash读取xml里的汉字 会发生乱码

搜索到的解决方法如下:

 

打开终端输入以下命令:

#sudo gedit /etc/fonts/conf.d/49-sansserif.conf

修改后的文件内容如下

<?xml version=”1.0″?>
<!DOCTYPE fontconfig SYSTEM “fonts.dtd”>
<fontconfig>
<!–
If the font still has no generic name, add sans-serif
–>
<match target=”pattern”>
<test qual=”all” name=”family” compare=”not_eq”>
<string>wqy-zenhei</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>wqy-zenhei</string>
</test>
<test qual=”all” name=”family” compare=”not_eq”>
<string>monospace</string>
</test>
<edit name=”family” mode=”append_last”>
<string>wqy-zenhei</string>
</edit>
</match>
</fontconfig>

保存修改,再重启一下firefox