Change the default text encoding in Eclipse to UTF-8

  1. In Eclipse, open Window->Preferences.
  2. Go to General->Workspace.
  3. Under the Text file encoding section, check Other and click on the drop down box to select UTF-8.