About importing a project eclipse garbled problem

Source: Internet
Author: User

The general company's projects are utf-8 coding. Because you can switch the language of a Web page at any time. But a lot of the time some introductory projects are made with GBK or gb2312.


When you import a project encoded as GBK into a project space that is encoded as UTF-8, you will find that all Chinese are garbled. Vice versa.


There are 2 general solutions:

If only *.java appear Chinese garbled. Click window-preferences-to search for content, click content-types-Select text--Find Java source file in the following default encoding write UTF-8 or GBK, Click Update. If there are *.xml and other files garbled. And not in the list. Can add a new one.


Generally, the above can solve the problem. If not. window-preferences-Search Workspace Select the text file encoding change to the corresponding encoding.

This article from "Baidu Know" blog, declined reprint!

About importing a project eclipse garbled problem

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.