Solve the problem of garbled Chinese comments in eclipse viewing the class in the jar package

1. The source of the problem is to directly view the garbled code in the class of springside (automatically decompiled by eclipse) in eclipse:

Preferences-General-Workspace-Text file encoding is set to uft-8

Finally restarting eclipse is usually ok.

 

2. If the source code of the associated jar is garbled, try the following methods:

Set the default encoding of Java Class File and Text in General>ContentTypes in Eclipse's Preferences to UTF-8 (or any other encoding format you need to set)
and re-associate it once! If it still doesn't work, try to re-associate the source jar package in another place.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326326839&siteId=291194637