Eclipse中文乱码解决汇总(应该比较全):

Eclipse中文乱码解决汇总(应该比较全,欢迎补充):

方法一:

把GBK改成utf-8。

方法二:

Window->preference->general->content types->text->各个文件改为utf-8,切记要update才能生效。

方法三:右击某一文件,选择properties,选择utf-8

方法四:右击工程,选择properties,选择utf-8.

方法五:

Window->preference->general->workspace->other改为utf-8.

原文地址:https://www.cnblogs.com/cangdingju/p/5518852.html