解决Ubuntu下中文flash乱码问题
8 五, 2009 刚刚使用了Ubuntu,却觉得这个操作系统在很多方面值得我们去研究,去用,也许刚开始有点不习惯,其实windows也是从开始慢慢习惯过来的.
每次用ubuntu下的firefox打开网页都正常,只是有时乱码,后来才发现都局限在flash乱码,开始也想是不是编码问题?如果编码错了,那会整个页面都错误,所以在网上查了好久,找到了这个解决办法.记录下.
1.首先,打开终端.输入
sudo -i
切换到root.
2.在输入
cd /etc/fonts/conf.d/
3.之后你可以备份一下字体配置:
sudo cp 49-sansserif.conf 49-sansserif.conf_backup
也可以跳过。
4.这步必须是root权限:
sudo gedit ./49-sansserif.conf
5.下面你会在那个文件中看到类似这样的文档:
< ?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>sans-serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>serif</string> </test> <test qual="all" name="family" compare="not_eq"> <string>monospace</string> </test> <edit name="family" mode="append_last"> <string>sans-serif</string> </edit> </match> </fontconfig>
将其中的第1、2、4个
比如:我的系统中安装了wqy-zenhei.ttf,我则用wqy-zenhei代替上述所说的字段
注意:一般都修改成wqy-zenhei就可以!
修改完后文件:
< ?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>
我试了,无效……
我也遇到一样的问题,不过觉得并不是非改不可……serif我也不知道要换成什么字体……
先收藏下,等用的时候遇到这问题就好解决了。
Leave a Reply
Using Gravatars in the comments - get your own and be recognized!
XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>

其实只用改最下面一个,但是改了之后英文就不漂亮了,不知道怎么处理这个问题。