How to solve Wine garbled characters in Ubuntu and support Chinese Characters

Source: Internet
Author: User
During this time, UBUNTU 9.04x64 has been installed and many problems have been encountered. We collect the information to facilitate the use of wine, which is officially provided by winehq. However, we recommend that you use the latest wine version officially provided by winehq, the new version solves a lot of previously troublesome problems. Please add the signature as described below: wget-qhttp: // wine.budgetdedicated.com/apt/387EE263.g

During this period, the Ubuntu 9.04 x64 system was installed and many problems were encountered.

Install wine
Ubuntu officially comes with wine, but we recommend that you use the latest wine version officially provided by winehq. The new version solves many previously troublesome problems. Please install it as mentioned below

Add the signature first ::

Wget-q http://wine.budgetdedicated.com/apt/387EE263.gpg-O-| sudo apt-key add-
Add a wine source and execute the following programs according to your Ubuntu version.

Run the following command for Ubuntu Jaunty (9.04 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/jaunty.list-O/etc/apt/sources. list. d/winehq. list
Run the following command for Ubuntu Intrepid (8.10 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/intrepid.list-O/etc/apt/sources. list. d/winehq. list
Run the following command for Ubuntu hard (8.04 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list-O/etc/apt/sources. list. d/winehq. list
Run the following command for Ubuntu Gutsy (7.10 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list-O/etc/apt/sources. list. d/winehq. list
Run the following command for Ubuntu Feisty (7.04 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/feisty.list-O/etc/apt/sources. list. d/winehq. list
Run the following command for Ubuntu Edgy (6.10 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/edgy.list-O/etc/apt/sources. list. d/winehq. list
Run the following command for Ubuntu Dapper (6.06 ::

Sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/dapper.list-O/etc/apt/sources. list. d/winehq. list
Next, you can open a terminal and execute ::

Sudo apt-get update
Sudo apt-get install wine
To install,

Choose Start> system> System Management> New Software Package Manager, select wine, and click Install.

Initial settings
Accelerate wine
Due to the problem of X locale, wine polls x core fonts by default, making wine very slow. Please first execute ::

Sudo sed-I-e '/GBK/,/^}/D'/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE
Modify wine appearance
The default wine font, subject, and color are not suitable, you can use this [Hiweed] wine configuration to create a new text file hiweed_green_color.reg for writing (the wine installed in the 9.04 source cannot import the following reg file, which may be caused by space incompatibility between regedit, deleting the first space before each row in the following section may solve the problem )::

The Code is as follows:
 
REGEDIT4
[HKEY_LOCAL_MACHINESystemCurrentControlSetHardware ProfilesCurrentSoftwareFonts]
"FIXEDFON. FON" = ""
"FONTS. FON" = ""
"LogPixels" = dword: 00000060
"OEMFONT. FON" = ""
[HKEY_CURRENT_USERSoftware \ Wine \ Fonts \ Replacements]
@ = "Ar pl ShanHeiSun Uni"
"Arial" = "ar pl ShanHeiSun Uni"
"Fixedsys" = "ar pl ShanHeiSun Uni"
"Microsoft Sans Serif" = "ar pl ShanHeiSun Uni"
"MingLiU" = "ar pl ShanHeiSun Uni"
"Ms ui Gothic" = "ar pl ShanHeiSun Uni"
"PMingLiU" = "ar pl ShanHeiSun Uni"
"Simsun" = "ar pl ShanHeiSun Uni"
"Songti" = "ar pl ShanHeiSun Uni"
"System" = "ar pl ShanHeiSun Uni"
"Tahoma" = "ar pl ShanHeiSun Uni"
"Terminal" = "ar pl ShanHeiSun Uni"
"" = "Wen Ding PL fine Shanghai Song Uni"
[HKEY_CURRENT_USERSoftware \ Wine \ X11 Driver]
"ClientSideAntiAliasWithRender" = "N"
[HKEY_LOCAL_MACHINESoftwareMicrosoftWindows NTCurrentVersionFontSubstitutes]
"MS Shell Dlg" = "winding PL fine Shanghai Song Uni"
"MS Shell Dlg 2" = "winding PL fine Shanghai Song Uni"
"System" = "ar pl ShanHeiSun Uni"
[HKEY_CURRENT_USERControl Panel \ Colors]
"ActiveBorder" = "239 235 230"
"ActiveTitle" = "0 153 11"
"AppWorkspace" = "128 128 128"
"Background" = "58 110 165"
"ButtonAlternateFace" = "180 180 180"
"ButtonDkShadow" = "64 64 64"
"ButtonFace" = "232 227 221"
"ButtonHilight" = "255 255 255"
"ButtonLight" = "239 235 230"
"ButtonShadow" = "128 128 128"
"ButtonText" = "0 0 0"
"GradientActiveTitle" = "166 202 240"
"GradientInactiveTitle" = "192 192 192"
"GrayText" = "128 128 128"
"Hilight" = "0 153 11"
"HilightText" = "255 255 255"
"HotTrackingColor" = "0 0 255"
"InactiveBorder" = "192 192 192"
"InactiveTitle" = "232 227 221"
"InactiveTitleText" = "0 0 0"
"InfoText" = "0 0 0"
"InfoWindow" = "255 255 225"
"Menu" = "232 227 221"
"MenuBar" = "232 227 221"
"MenuHilight" = "0 0 0"
"MenuText" = "0 0 0"
"Scrollbar" = "239 235 230"
"TitleText" = "255 255 255"
"Window" = "255 255 255"
"WindowFrame" = "0 0 0"
"WindowText" = "0 0 0"
Use regedit to import this reg and run: regedit hiweed_green_color.reg.
If there is no font file in. wine/drive_c/windows/fonts/, use the following command to connect ::

Ln-s/usr/share/fonts/TTF/odow.ttc ~ /. Wine/drive_c/windows/Fonts/
 

Garbled Solution
1. First copy the simsun. ttc font to enter ~ /. Wine/drive_c/windows/Fonts/
2. Modify the Registry File ~ /. Wine/system. reg:
In [Software \ Microsoft \ Windows NT \ CurrentVersion \ FontSubstitutes:
"MS Shell Dlg" = "Tahoma"
"MS Shell Dlg 2" = "Tahoma"

Changed:
"MS Shell Dlg" = "SimSun"
"MS Shell Dlg 2" = "SimSun"

Of course, if you are interested, you can also convert other fonts in this part into SimSun.

 

Chinese support
Usage:
1) install winehq official wine version (please refer to: http://wiki.ubuntu.org.cn/Wine );
2) load the patch package of the corresponding version;
3) decompress the package (enter the directory where the patch package is located ):

Code:
Tar-xvvf wine-1.1.25_amd64_gdi32.dll.so.tar.bz2
 

4) then enter the command:

 

Hard amd64:

 

Code:
Sudo mv/usr/lib32/wine/gdi32.dll. so gdi32.dll. so. backup
Sudo cp gdi32.dll. so/usr/lib32/wine
Hard i386:

Code:
Sudo mv/usr/lib/wine/gdi32.dll. so gdi32.dll. so. backup
Sudo cp gdi32.dll. so/usr/lib/wine
Address of the patch:

 

Http://forum.ubuntu.org.cn/viewtopic.php? F = 121 & t = 131400

 

Beautification
If wine is used in an English environment, use env LANG = zh_CN.UTF-8 wine "running program ".

Font beautification of wine:

Enable the font anti-aliasing:
REGEDIT4
[HKEY_CURRENT_USER \ Software \ Wine \ X11 Driver]
"ClientSideAntiAliasWithCore" = "Y"
"ClientSideAntiAliasWithRender" = "Y"
"ClientSideWithRender" = "Y"

Enable the font smoothing function:
REGEDIT4

[HKEY_CURRENT_USER \ Control Panel \ Desktop]
"FontSmoothing" = "2"
"FontSmoothingType" = dword: 00000002
"FontSmoothingGamma" = dword: 00000578
"FontSmoothingOrientation" = dword: 00000001

 

From: http://www.lyzsoft.cn/wine-garbled-solution.html

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.