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

How to solve garbled code in java eclipse

王林
王林Original
2019-11-09 16:42:033393browse

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!

Statement:
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
Previous article:java what is gcNext article:java what is gc