wine 乱码解决
2013-04-24 22:53
204 查看
wine下中文的配置方案
步骤:
1. 初始设置
运行 winecfg,把模拟的 Windows 系统设置为 Windows XP 或者 Windows 2000。
2. 准备字体
为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。
将 simsun.ttc 复制到~/.wine/drive_c/windows/fonts/
目录中。
3. 修改 ~/.wine/system.reg
装好字体后,还要修改一下 Wine 的注册表设置,指定与字体相关的设置:
[plain] view
plaincopy
gedit ~/.wine/system.reg
(一定要使用 gedit 或其他支持 gb2312/utf8编码的编辑器修改这些文件,否则文件中的中文可能变乱码)
搜索:LogPixels
找到的行应该是:[System\\CurrentControlSet\\HardwareProfiles\\Current\\Software\\Fonts]
将其中的:
[html] view
plaincopy
"LogPixels"=dword:00000060
改为:
[html] view
plaincopy
"LogPixels"=dword:00000070
搜索:FontSubstitutes
找到的行应该是:[Software\\Microsoft\\WindowsNT\\CurrentVersion\\FontSubstitutes]
将其中的:
[html] view
plaincopy
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改为:
[html] view
plaincopy
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2″="SimSun"
4. 修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[plain] view
plaincopy
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
5. 关键的一步──把下面的代码保存为zh.reg,然后终端执行
[plain] view
plaincopy
$ regedit zh.reg
代码:
[plain] view
plaincopy
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"
之后,中文正常显示!
[plain] view
plaincopy
$ env LANG="zh_CN.UTF-8" wine CAJViewer.exe
步骤:
1. 初始设置
运行 winecfg,把模拟的 Windows 系统设置为 Windows XP 或者 Windows 2000。
2. 准备字体
为了让 Windows 应用程序看上去更美观,所以需要 Windows 下面的字体。
将 simsun.ttc 复制到~/.wine/drive_c/windows/fonts/
目录中。
3. 修改 ~/.wine/system.reg
装好字体后,还要修改一下 Wine 的注册表设置,指定与字体相关的设置:
[plain] view
plaincopy
gedit ~/.wine/system.reg
(一定要使用 gedit 或其他支持 gb2312/utf8编码的编辑器修改这些文件,否则文件中的中文可能变乱码)
搜索:LogPixels
找到的行应该是:[System\\CurrentControlSet\\HardwareProfiles\\Current\\Software\\Fonts]
将其中的:
[html] view
plaincopy
"LogPixels"=dword:00000060
改为:
[html] view
plaincopy
"LogPixels"=dword:00000070
搜索:FontSubstitutes
找到的行应该是:[Software\\Microsoft\\WindowsNT\\CurrentVersion\\FontSubstitutes]
将其中的:
[html] view
plaincopy
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2″="Tahoma"
改为:
[html] view
plaincopy
"MS Shell Dlg"="SimSun"
"MS Shell Dlg 2″="SimSun"
4. 修改 ~/.wine/drive_c/windows/win.ini
gedit ~/.wine/drive_c/windows/win.ini
在文件末尾加入:
[plain] view
plaincopy
[Desktop]
menufontsize=13
messagefontsize=13
statusfontsize=13
IconTitleSize=13
5. 关键的一步──把下面的代码保存为zh.reg,然后终端执行
[plain] view
plaincopy
$ regedit zh.reg
代码:
[plain] view
plaincopy
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"
之后,中文正常显示!
[plain] view
plaincopy
$ env LANG="zh_CN.UTF-8" wine CAJViewer.exe
相关文章推荐
- wine中文乱码的解决方法
- 【转】解决wine中文乱码的问题
- 查看已安装软件包的方法 and Oracle中文乱码解决办法总结 and Ubuntu12.04下Windows软件的安装(Wine的简单使用)
- ubuntu下 wine如何解决 rtx乱码问题
- Ubuntu中wine中文乱码的解决方法
- mac osx wine 1.7.5 源码编译方法及中文乱码的解决
- wine中文乱码解决方法
- mac osx wine 1.7.5 源码编译方法及中文乱码的解决
- 解决wine安装程序的乱码问题
- wine的乱码问题解决
- Linux下使用Wine出现中文乱码的解决方法
- wine中文乱码的解决方法
- wine中文乱码的解决方法
- Wine 中文存在很多的乱码怎么解决方法
- ubuntu下wine安装软件时乱码问题解决
- 解决Wine和IEs4Linux的乱码问题
- wine中中文乱码的解决办法
- 解决wine中对话框乱码问题
- wine中文乱码解决方法
- Wine中UE32工具栏乱码问题解决方法