ubuntu 9.04 中文乱码解决方案
:
本文提供解决Ubuntu 9.04系统中文乱码问题的步骤,主要针对Flash和Wine两种常见情况。
一、Flash乱码修复:
打开终端,输入以下命令并回车:
sudo gedit /etc/fonts/conf.d/49-sansserif.conf登录后复制
在打开的文件中,找到第四行 sans-serif,将其替换为 sans 或 文泉驿正黑。 修改后的文件示例如下:
<?xml version="1.0"?> <match target="pattern"></match> <test compare="not_eq" name="family" qual="all"></test> <string>sans-serif</string> <!-- 修改此行 --> <test compare="not_eq" name="family" qual="all"></test> <string>serif</string> <test compare="not_eq" name="family" qual="all"></test> <string>monospace</string> <edit mode="append_last" name="family"></edit> <string>sans</string> <!-- 或 <string>文泉驿正黑</string> -->登录后复制
保存文件并关闭。
二、Wine乱码修复:
Wine的安装方法请参考https://www.php.cn/link/9f1974a3c9203cbce1166759bcb7fc0f。
在Wine的C盘中找到Windows文件夹,双击打开,再双击regedit.exe启动注册表编辑器。
找到HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes,双击MS Shell Dlg和MS Shell Dlg 2这两个键值,将其值修改为Microsoft YaHei。 在此之前,请确保已将msyh.ttf字体文件复制到Wine的C:/Windows/Fonts目录下。您可以从网上下载该字体文件,或者从安装了Vista系统的电脑的C:/Windows/Fonts目录下复制。
完成以上步骤后,重启系统即可。
本文来自投稿,不代表本站立场,如若转载,请注明出处: