Home > Java > JavaBase > body text

Java project garbled solution

Release: 2019-12-07 14:19:40
Original
16711 people have browsed it

Java project garbled solution

Java project garbled solution: (Recommended: java video tutorial)

1. Set the encoding of the workspace

1. The encoding of the editor will affect the display of characters in all projects. It can be said to be the most widely used setting. Every project will be affected by this setting. Click Window - Preferences in the menu bar.

2. Click General - Wordspace, and then select the encoding format you want to set in the Text file encoding on the right. The system default format is GBK.

2. Set the encoding of the project

1. If there is no garbled code problem in other projects, but only some garbled codes appear when displaying, then we do not need to set up the work For the encoding of the space, you only need to modify the encoding of the project.

2. After selecting the item, right-click and click Properties in the pop-up menu.

3. In the pop-up properties window, select Resource - click to select Other, and then select the encoding format you want.

3. Set the encoding of a single file

1. Only some files are garbled, then setting the encoding format of individual files can solve the problem. Select the garbled file and right-click.

2. Select Properties in the pop-up menu.

3. Select the resource in the pop-up properties window, click Other and set the encoding method of individual files.

For more java knowledge, please pay attention to the java basic tutorial column.

The above is the detailed content of Java project garbled solution. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template