Ubuntu的firefox的flash乱码的解决:
修改/etc/fonts/conf.d/49-sansserif.conf文件
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>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>
把这个文件的最后那个字体换成自己系统有的中文字体,如:
文泉驿 正黑
这样这个文件就是这样了:
<?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>文泉驿正黑</string>
</edit>
</match>
</fontconfig>
本文介绍了解决Ubuntu系统下Firefox浏览器Flash插件显示中文乱码的问题。通过修改配置文件/etc/fonts/conf.d/49-sansserif.conf,并将默认的sans-serif字体更改为系统支持的中文字体(例如文泉驿正黑),可以有效解决Flash内容的乱码问题。

被折叠的 条评论
为什么被折叠?



