Eclipse import project garbled (Chinese garbled), eclipse garbled

Source: Internet
Author: User

Eclipse import project garbled (Chinese garbled), eclipse garbled

1. The encoding is incorrect.

A. Change the code for a file or project:

Move the mouse to the project name or file name, right-click-> Properties-> Resource-> Text file enCoding-> Change enCoding (GBK, UTF-8, etc.)-> Apply-> OK to exit

B. Modify the encoding of the entire namespace.

Eclipse menu bar-> Window-> Preferences (preferences is generally used to modify the location of various eclipse settings) -> General-> Workspace-> text file encoding-> Change encoding (GBK, UTF-8, etc.)-> Apply-> OK exit

C. Modify the encoding of a specific type of files (such as xml files and java files) (not affected by the namespace encoding)

Eclipse menu bar-> Window-> Preferences-> General-> Content types-> select the file type in the right view-> Select language in Default enCoding-> Update-> OK to exit

Note: If the drop-down menu bar does not have the language type you want, you can enter it on your own keyboard. If the language type is not changed, eclipse will naturally report an error. If no error is reported, you can change the language type.

2. maven Problems

Eclipse menu bar-> Window-> Preferences-> Maven-> Installations-> User Settings-> import the settings. xml file of maven-> Refresh

But why does maven cause garbled Characters --

 

3. There may be conflicts between the two projects in one workspace using different encoding methods. You can try not to put it in a workspace to see if it can solve the 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.