Ways to solve the eclipse's Chinese characters

Source: Internet
Author: User

(1) Set the encoding format for project:

The new project in workspace inherits the encoding settings of workspace by default. We can also change the encoding format of an item individually. Right-click Project. Select Properties to open the Project property settings form. The left-hand navigation tree selects resource, and the Text file encoding is found in the right side view, both of which set the encoding format for the item. The default is "inherited from container (XXX)" (Note: XXX for the workspace set encoding), we can also choose other encoding format, set up in the same way as workspace. Generally choose UFT-8.

(2) Set the encoding format for workspace:  

windows-> Preferences ... Open the Preferences form, click the left navigation tree to General->workspace, find the "Text file encoding" option setting in the right side view, one is default, and one is select from the drop-down list (other). The default encoding for Eclipse workspace is the encoding format of the operating system, which is related to the operating system settings. Alternatively, we can select the other radio button and select the required encoding format from the drop-down list on the right side of the button (GBK, iso-8859-1, UTF-16, UFT-16 etc).  


Ways to solve the eclipse's Chinese characters

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.