Solve the problem of Chinese in the JavaGUI program in Ubuntu9.10

Source: Internet
Author: User
When Java-based desktop applications were installed with Ubuntu8.10 in the past, a common problem was that the Chinese characters on the interface were displayed as square characters or garbled characters, while the English language was normal. This problem can be solved in a simple way. Run the code cd/usr/lib/jvm/Your jvm/jre/lib/fontssudomkdirfallback & amp; sudoln-s/usr/lib/fonts/truetype/wqy/

In the past, when I installed a Java-based desktop application in Ubuntu 8.10, I often encountered a problem: the Chinese characters on the interface are displayed as square characters or garbled characters, while the English language is normal. This problem can be solved in a simple way. Run the code

Cd/usr/lib/jvm/Your jvm/jre/lib/fonts

Sudo mkdir fallback & sudo ln-s/usr/lib/fonts/truetype/wqy/wqy-zenhei.ttc fallback/wqy-zenhei.ttf

Generally, the above method can solve the problem that Chinese characters are garbled and square characters. However, this method does not solve my problem after I upgrade to Ubuntu 9.10. I installed SmartSVN as usual and found Chinese garbled characters. I thought it could be done easily, however, no matter which directory under/usr/lib/jvm I press the above method, the problem cannot be solved. I tried multiple times and ended up failing. The problem I encountered was as follows:

We can see that there are no garbled characters in Chinese, but we can see it vaguely as Chinese, but there is a problem with rendering.

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.