wine中文亂碼的解決方法新裝的wine中文全是亂碼,需要修改一下幾個(gè)配置文件,找到一篇比較詳細(xì)的配置說(shuō)明,分享一下: " wine下中文的配置方案 步驟: 1. 初始設(shè)置 運(yùn)行 winecfg,把模擬的 Windows 系統(tǒng)設(shè)置為 Windows XP 或者 Windows 2000。 2. 準(zhǔn)備字體 為了讓 Windows 應(yīng)用程序看上去更美觀,所以需要 Windows 下面的字體。 由于我已經(jīng)將 simsun.ttc 復(fù)制到 /usr/share/fonts/windows/ 目錄中了。所以我只需要在 ~/.wine/drive_c/windows/fonts/ 目錄中為 simsun.ttc 創(chuàng)建一個(gè)符號(hào)連接: cd ~/.wine/drive_c/windows/fonts ln -s /usr/share/fonts/windows/simsun.ttc simsun.ttc ln -s /usr/share/fonts/windows/simsun.ttc simfang.ttc 創(chuàng)建一個(gè) simfang.ttc 是許多 Windows 應(yīng)用默認(rèn)使用 simfang.ttc 字體。 3. 修改 ~/.wine/system.reg 裝好字體后,還要修改一下 Wine 的注冊(cè)表設(shè)置,指定與字體相關(guān)的設(shè)置: gedit ~/.wine/system.reg (一定要使用 gedit 或其他支持 gb2312/utf8 編碼的編輯器修改這些文件,否則文件中的中文可能變亂碼) 搜索: LogPixels 找到的行應(yīng)該是:[System\\CurrentControlSet\\Hardware Profiles\\Current\\Software\\Fonts] 將其中的: "LogPixels"=dword:00000060 改為: "LogPixels"=dword:00000070 搜索: FontSubstitutes 找到的行應(yīng)該是:[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] 將其中的: "MS Shell Dlg"="Tahoma" "MS Shell Dlg 2″="Tahoma" 改為: "MS Shell Dlg"="SimSun" "MS Shell Dlg 2″="SimSun" 4. 修改 ~/.wine/drive_c/windows/win.ini gedit ~/.wine/drive_c/windows/win.ini 在文件末尾加入: [Desktop] menufontsize=13 messagefontsize=13 statusfontsize=13 IconTitleSize=13 5. 最關(guān)鍵的一步,網(wǎng)上很多文章中沒(méi)有提到的一步──把下面的代碼保存為zh.reg,然后終端執(zhí)行regedit zh.reg。從Windows目錄下的Fonts里的simsun.ttc復(fù)制到/home/user/.wine/drive_c/windows/fonts里面。 代碼: REGEDIT4 [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" 之后,中文正常顯示! |
|
|