Eclipse Encoding Settings

Source: Internet
Author: User

The general Java file Encoding format is UTF-8. The following is an example of changing the default GBK to UTF-8.

1. Change the encoding format for the entire workspace so that the newly created file is also the encoding format for the new settings.

Eclipse->window->preferences->general->workspacetypes->other->utf-8->ok

Chinese version:eclipse-> window, preferences, general--working space--Other->utf-8-> OK

2. Project-wide setup encoding format

Project->properties->general->resource->other->utf-8->ok

3. Encoding format for a type of file

Eclipse->window->preferences->general->content types-> Right find the type of file to modify (java,jsp, etc.), the default Encoding, enter Utf-8->update->ok in the input box

Chinese version:eclipse-> window, general----Content type--Select the type of file you want to modify, and then update the default encoding input,

4. Set the encoding format for individual files

In Package Explorer, right-click File--Properties, change the text file encoding format to UTF-8

Note: Change the encoding format before doing backup, you can also use the Encoding Format Batch conversion tool under the search for a lot of such gadgets under the web.

Eclipse Encoding Settings

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.