https://www.cnblogs.com/xiehongwei/p/11156326.html
步驟1、在eclipse菜單欄中,Window–>Preferences–>General–>Content types。將JAR Content , Java Class File 的Default encoding都設置爲你要的編碼。
步驟2、光設置上面的還不行,還需要再設置Workspace的編碼。Window–>Preferences–>General–>Workspace,將Text file encoding的默認編碼也設置爲和上面一致的編碼。
步驟3、保存,重啓Eclipse即可發現亂碼問題解決了。