In ubuntu, you can use eclipse to open the java program written in windows, and the Chinese characters are garbled and the font is modified.

Source: Internet
Author: User

In fact, all Chinese garbled characters are caused by different codes. To enable eclipse to display Chinese characters normally, we need to modify its character encoding.
The procedure is as follows:
1. Click Window in the menu bar and select Preferences
2. Select General on the left in the displayed window. To pull out its menu.
3. Select the Content Types option. The Text is displayed on the right. Click to pull down the menu.
4. Select the Java Source File, set the Default encoding at the bottom to GB18030 (both GBK and GB2312), click update on the right, and then click OK.
 
If the above steps are ineffective, restart eclipse.
If the project name in the workspace on the left side of the eclipse editing page is garbled, the same method is used, except that the options under Text are different.
Font modification: the first two steps are the same.

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.