现在的位置: 首页 > 综合 > 正文

Ubuntu9.04太多乱码(中文不能正常显示)

2013年10月20日 ⁄ 综合 ⁄ 共 1063字 ⁄ 字号 评论关闭

最近在使用Ubuntu9.04的过程中,发现有好多地方都出现乱码,其实是中文不能正常显示,现在把我所遇到的所有乱码问题集中一下,方便以后查阅参考。
一、Flash乱码
在终端输入:sudo gedit /etc/fonts/conf.d/49-sansserif.conf 回车
将第四行<string>sans-serif</string>替换成<string>sans</string>或者<string>文泉驿正黑</string>
如下所示:
<?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</string>
        </edit>
    </match>
</fontconfig>

二、Wine乱码
安装Wine请浏览http://wiki.ubuntu.org.cn/Wine。
浏览到Wine的C盘,双击Windows,再双双击,regedit.exe启动注册表编辑器。
在HKEY_LOCAL_MACHINE/Software/Microsoft/Windows
NT/CurrentVersion/FontSubstitutes下将双击MS Shell Dlg与MS Shell Dlg
2将值修改为Microsoft
YaHei,当然在此之前很得将msyh.ttf文件拷贝到Wine中的C:/Windows/Fonts下,此字体可以在网上下载,或者到Vista的
同上目录下复制。

抱歉!评论已关闭.