Eclipse Encoding Settings

Source: Internet
Author: User

Source: http://kodak-zhou.iteye.com/blog/1004722

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, general, work space, other->utf-8-> Determine  

2. Project-wide setup encoding format  
Project->properties->general->resource->other->utf-8->ok  

3. Encoding format of a file of a type  
Eclipse->window->preferences->general->content types-> Right find the type of file to modify (java,jsp, etc.), the default Encoding input box, enter Utf-8->update->ok 
Chinese version:eclipse-> window Preferences, general-type, content types, on the right, select the type of file you want to modify, and the following default encoding input, update  

4. Single file set encoding format  
in Package Explorer, right click on file--Properties, change the text file encoding format to Utf-8 

Note: Before changing the encoding format for 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

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.