Eclipse Development Setup encoding format--4 places to modify perfect

Source: Internet
Author: User

Background: I use so long, because most of them are set to UTF-8, but some of the old project is actually GBK format, so the work space, usually the encoding of the file type is UTF-8.

For special projects to set a specific format, in fact, I do not work on the entire project settings, so can only be a single file to modify the encoding format, if the file many sad reminders.

Different versions of Eclipse are actually found, and the menu is a little differently.

--First Browse through the following articles, illustrated:

Eclipse encoding Format tutorial, how do I set the encoding format for eclipse? -Echo--android-Blog Park
Https://www.cnblogs.com/jingmo0319/p/5626176.html

How does eclipse set the encoding format? (3 ways)-CSDN Blog
http://blog.csdn.net/Rainy_Black_Dog/article/details/52403735

Eclipse encoding Settings--Iteye Blog---good
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.
1. Text file encoding->other->utf-8->ok, Workspac, General, Preferences, window
Chinese version:eclipse-> window, preferences, general--working space--Other->utf-8-> OK

2. Encoding format for a type of file
Eclipse->window, Preferences, General, Content Types, right find the type of file to modify (java,jsp, and so on), and in 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,

3. The project scope of the setup encoding format (I set not the entire project code changes)
Project->properties-->resource->other->utf-8->ok

4. Set the encoding format for individual files
In Package Explorer, right-click File--Properties, change the text file encoding format to UTF-8

Or: Click the current file, press ALT + ENTER, pop-up window

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 Development Setup encoding format--4 places to modify perfect

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.