Eclipse Change Character Set
By default, Eclipse uses the GBK character set, but many projects now use UTF-8. Therefore, we need to set our Eclipse development environment character set to UTF-8. The steps to set this up are as follows:
In the menu bar, select Window -> Preferences -> General -> Workspace -> Text file encoding. In the Text file encoding section, click Other and choose UTF-8, as shown in the figure: