The solution to garbled characters when eclipse imports other people's projects

When we use eclipse, we may download other people's projects from the Internet, but when we open it, we find that there are garbled characters in Chinese. This may be because the encoding format you set is different from others'.

The garbled characters are as follows, it can be seen that Chinese characters have become garbled characters.
insert image description here
Solution: Right-click a single project -> Click Properties-
>Resource->Other
insert image description here
insert image description here
to modify the encoding format, usually GBK or utf-8
insert image description here
.
insert image description here
Format

Changing the encoding format of eclipse at this time may cause Chinese garbled characters in the project you originally wrote. For example, if you originally used the GBK format, all the code you wrote before used the GBK encoding format. Once you modify If it becomes UTF-8, then the code you wrote before is very likely to have Chinese garbled characters.

Guess you like

Origin blog.csdn.net/a26689/article/details/118998851