Eclipse Project Coding Format Modification method

Source: Internet
Author: User

It is well known that Eclipse is an international universal programming tool, sometimes we make a standard development source code project, need to modify the code, usually, the program default file encoding for GBK format, but the international common code for UTF-8, if the file is opened in the country without transcoding, If the use of foreign, so than people open must be garbled, because it does not support GBK coding, in order to better and international standards, recommend the UTF-8 format. The following small series brings you to eclipse's method of modifying the encoding format.

Coding Modification Method

1.window->preferences->general->content types menu to the right: Java Class file's default encoding modified to Utf-8;

2.window->preferences->general->content types menu to the right: the Java Source file under text is changed to Utf-8

3.general->workspace menu to the right: Text file encoding modified to Utf-8

By doing so, we can simply convert the encoding to the UTF-8 format.

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.