So how to set it up?
1. In window -> Preferences -> general -> Workspac -> Text file encoding
, select Other and change the encoding to UTF-8, so that the Text file encoding in the properties dialog of the newly created project will be UTF-8.
![](http://dl2.iteye.com/upload/attachment/0122/1888/88c4ae8c-b221-3c9f-9a91-8cc7f90efc12.png)
2. window -> Preferences -> general -> Content Types
, select the Text tree, click it, select Java Source File, enter UTF-8 in the Default encoding input box below, and press the Update button to set the Java file encoding to UTF -8.
![](http://dl2.iteye.com/upload/attachment/0122/1890/e7877588-4603-3931-95ed-fddfeb461851.png)