How to solve the problem of garbled Chinese characters using Wine in Ubuntu! Personal test successful!

Source: Internet
Author: User


Note: I am using the latest ubuntu11.10 and Wine 1.3.


Wine garbled characters are caused by incorrect font associations. You need to modify the key value of the registry when solving the problem. If wine is installed in Ubuntu, you can modify the Registry Association. The steps below are successfully modified and used:

========================================================== ========================================================== ======================

1. Use wine to open FoxitReader (or use other methods to open wine), and then click "open PDF file" (why? In this way, we can see the ubuntu virtual C disk), and a box will pop up. Then, in this box, set c: \ windows \ Fonts \ simsun in the real windows System (I use Win7. copy the ttc file to the same location of the virtual c disk opened in the wine menu, that is, the virtual c: \ windows \ Fonts location. (This is to enable wine to associate existing/correct fonts)


========================================================== ========================================================== ======================
2. Enter the command "gedit. wine/system. reg" on the terminal to open the. wine/system. reg configuration file.

(Here, you must use gedit or other editors that support gb2312/utf8 encoding to modify these files. Otherwise, Chinese characters in the files may be garbled)

========================================================== ========================================================== ======================
3. Edit
(1) Search: LogPixels
The row should be: [System \ CurrentControlSet \ Hardware Profiles \ Current \ Software \ Fonts]
Replace the following:
"LogPixels" = dword: 00000060

Changed:
"LogPixels" = dword: 00000070

(The word width is changed here)

(2) Search: FontSubstitutes
The row should be: [Software \ Microsoft \ Windows NT \ CurrentVersion \ FontSubstitutes]
Replace the following:
"MS Shell Dlg" = "Tahoma"
"MS Shell Dlg 2" = "Tahoma"

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

Save and exit.

========================================================== ========================================================== ======================

 

Re-open wine and use wine to open FoxitReader. The sub-item in the menu shows the normal Chinese font and the PDF file is displayed normally.

Haha, get it done ~~~

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.