1 对于gedit,解决方法如下:
a) gconf-editor
apps->gedit-2->preferences->encodings
auto_detected和shown_in_menu上点右键编辑,点add,分别加入GBK或GB18030和GB2312,并点UP按钮移动到第一位
b) 打开命令行输入gconf-editor
选择app->gedit->preferences->encodings在auto_detected字段中添加GB2312
2 游戏或其他flash中文显示乱码
sudo rm /etc/fonts/conf.d/49-sansserif.conf
3 wine下,kugoo2008和winamp显示乱码的解决办法
先从Windows目录下的Fonts里的simsun.ttc复制到 ~/.wine/drive_c/windows/fonts里面。 然后把下面的代码保存为zh.reg,然后终端执行"regedit zh.reg"
我已经把代码存成了reg,大家也可直接下载使用[reg附件不能上传,大家自己copy然后另存吧]
[HKEY_LOCAL_MACHINE/Software/Microsoft/Windows NT/CurrentVersion/FontSubstitutes]
"Arial"="simsun"
"Arial CE,238"="simsun"
"Arial CYR,204"="simsun"
"Arial Greek,161"="simsun"
"Arial TUR,162"="simsun"
"Courier New"="simsun"
"Courier New CE,238"="simsun"
"Courier New CYR,204"="simsun"
"Courier New Greek,161"="simsun"
"Courier New TUR,162"="simsun"
"FixedSys"="simsun"
"Helv"="simsun"
"Helvetica"="simsun"
"MS Sans Serif"="simsun"
"MS Shell Dlg"="simsun"
"MS Shell Dlg 2"="simsun"
"System"="simsun"
"Tahoma"="simsun"
"Times"="simsun"
"Times New Roman CE,238"="simsun"
"Times New Roman CYR,204"="simsun"
"Times New Roman Greek,161"="simsun"
"Times New Roman TUR,162"="simsun"
"Tms Rmn"="simsun"
4 rhythmbox乱码解决:
sudo apt-get install python-mutagen
mid3iconv -e GBK *.mp3 #在MP3目录运行
5 解决wine方法
打开.wine/system.reg
搜索: LogPixels
找到的行应该是:[System//CurrentControlSet//Hardware Profiles//Current//Software//Fonts]
将其中的:
“LogPixels”=dword:00000060
改为:
“LogPixels”=dword:00000070
搜索: FontSubstitutes
找到的行应该是:[Software//Microsoft//Windows NT//CurrentVersion//FontSubstitutes]
将其中的:
“MS Shell Dlg”=”Tahoma”
“MS Shell Dlg 2″=”Tahoma”
改为:
“MS Shell Dlg”=”SimSun”
“MS Shell Dlg 2″=”SimSun”