1、右键-properties
2、
3、windows->Preferences,general->Content Types,右侧Context Types树,点开Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update,点击OK。
1、右键-properties
2、
3、windows->Preferences,general->Content Types,右侧Context Types树,点开Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update,点击OK。