Ubuntu乱码

一、先说说网页中的flash乱码吧:
刚刚装上的ubuntu默认浏览器是Firefox,但是Ubuntu默认不安装像flash这种带版权的软件。所以当你浏览像youku这种带有flash的网页时,firefox会提示你安装缺失插件,选择安装Flash插件后确实是可以显示flash了,不过你会发现,在flash上面的中文都是方框!
那么说下解决方法吧:
终端中输入:
cd /etc/fonts/conf.d/
sudo cp 49-sansserif.conf 49-sansserif.conf_backup
sudo gedit ./49-sansserif.conf
将其中的第1、2、4个后面的sans-serif用你自己系统中的中文字体的名字代替,
比如:我的系统中安装了wqy-zenhei.ttf(文泉驿,ubuntu中文自带),我则用wqy-zenhei代替上述所说的字段,结果如下:
<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>

 

二、然后是Rhythmbox中的歌曲信息乱码:
先安装mutagen:sudo apt-get install python-mutagen
然后转到你的MP3目录,例如我的歌曲放在系统的音乐文件夹则输入:cd /home/holmesrain(此为我的用户名,你需要换成你的用户名)/音乐
执行以全命令进行转换:mid3iconv -e GBK *.mp3
再用Rhythmbox重新导入歌曲文件夹就行了!
三、wine乱码:
从wine的菜单中选择browse C:\Driver,进入windows文件夹,双击运行regedit.exe文件。
搜索: LogPixels
找到的行应该是:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts
将其中的:
“LogPixels”=dword:00000060
改为:
“LogPixels”=dword:00000070
搜索: FontSubstitutes
找到的行应该是:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”
改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”
退出注册表就会发现一切OK了。
本文所有问题都是使用ubuntu的过程中,很容易碰到的一些问题,由于我也是新手,所以当我碰到这些问题时会上网去查找方法,但在寻找的过程中,我发现网上的很多资料良莠不齐,很容易误导新手。

posted @ 2010-08-27 16:10  T#S  阅读(690)  评论(0编辑  收藏  举报