Solve the problem of Eclipse Chinese garbled

Source: Internet
Author: User

Note: The display of all the Chinese encoding is mainly GBK and UTF-8,UTF-8 is the international standard of Chinese encoding , recommended use.

I. Setting the encoding of the workspace
    1. The encoding of the editor affects the display of characters in all items, which can be said to be the most widely used setting, and each item is affected by this setting. Click the window in the menu bar--option (Preferences).

    2. Click General--working space (wordspace), then select the encoding format you want to set in the text file encoding format on the right, and the default format for the system is GBK. END
Two. Set the encoding for the project
    1. If the other items do not have garbled problem, but the individual items appear garbled, then we do not need to set the work space coding, only need to modify the code of the project.
    2. When the item is selected, right-click and click Properties in the Pop-up menu.
    3. In the pop-up Properties window, select Resources (Resource)--click Select Other, then select the encoding format you want. END
Three. Set the encoding for individual files
    1. Only individual files garbled, then set the encoding format of individual files can solve the problem. Select the file that has garbled characters, and then right-click.
    2. In the pop-up menu, select Properties.
    3. Select the resource in the pop-up Properties window and click Other to set the encoding for individual files.

Solve the problem of Eclipse Chinese garbled

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.