深圳:气温:23.2℃,风向/风力:东风 小于3级,湿度:72%
安装好Ubuntu 9.04后,在用Firefox浏览器登陆QQ校友玩QQ农场时却发现Flash播放器无法正常显示中文,凡是有中文的地方都被方块代替了,如下图:
在网上找了一下,有相应的解决方法:
打开终端,输入以下命令:
cd /etc/fonts/conf.d/
先备份49-sansserif.conf文件:sudo cp 49-sansserif.conf 49-sansserif.conf_backup方法1、直接删除49-sansserif.conf文件:sudo rm 49-sansserif.conf
方法2、修改49-sansserif.conf文件配置:sudo gedit ./49-sansserif.conf
编号49-sansserif.conf文件,将其中的第1、2、4个后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替,注意字体名字的大小写,如我的系统中安装了SimSun,则用SimSun代替,结果如下:<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>SimSun</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>SimSun</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<string>SimSun</string>
</edit>
</match>
经本人亲测,以上二种方法都能解决了Ubuntu下Flash乱码问题:




评论