Eclipse modifies the encoding format

Source: Internet
Author: User

♣ Modifying workspace default encoding

♣ Encoding of modified files

♣ Modifying the encoding of a file type

1. Modify Workspace default encoding

Workspace, Preferences, window, Windows

2. Modify the encoding of the file:

Right-click on the Eclipse project file, select Properties, resource select Modify encoding format

3. Modify the encoding of a file type

Content Types, Preferences, window, Windows

On the right, find the type of file you want to modify, and I'll take *.java for example.

In the default encoding below, enter Utf-8->update->ok in the input box

4. Modify the encoding of individual files:

On a file in Package Explorer, right-click Properties--Resource Choose Modify encoding format, change text file encoding format to UTF-8

After the above steps, the new Java file is UTF-8 encoded, the new project is also UTF-8 encoded,

Eclipse compiles, runs, and debugs all without problems.

right|alston& thinking focus, original difficult, please respect the original.

Eclipse modifies the encoding 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.