Home > Java > Javagetting Started > How to solve garbled code in java eclipse

How to solve garbled code in java eclipse

王林
Release: 2019-11-09 16:42:03
Original
3482 people have browsed it

How to solve garbled code in java eclipse

Solution:

1. Find in the menu bar above: Window --> Preferences

How to solve garbled code in java eclipse

##2. Next, expand in order: General --> Workspace. You can see that the default encoding is GBK format

How to solve garbled code in java eclipse

3. If you want to support Chinese, you need utf -8 encoding format. So here we change the encoding to utf-8, click: Other, select "UTF-8", and then click "Apply and Close"

How to solve garbled code in java eclipse

4. You can see it at this time The Chinese language has been displayed normally, and it can also run successfully

How to solve garbled code in java eclipse

Recommended tutorial:

java tutorial

The above is the detailed content of How to solve garbled code in java eclipse. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Install JAVA
From 1970-01-01 08:00:00
0
0
0
Unable to install java
From 1970-01-01 08:00:00
0
0
0
Can java be used as the backend of the web?
From 1970-01-01 08:00:00
0
0
0
Is this in Java language?
From 1970-01-01 08:00:00
0
0
0
Help: JAVA encrypted data PHP decryption
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template