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.
Solution: Right-click a single project -> Click Properties-
>Resource->Other
to modify the encoding format, usually GBK or utf-8
.
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.