Source: http://kodak-zhou.iteye.com/blog/1004722
The general Java file Encoding format is UTF-8. The following is an example of changing the default GBK to UTF-8.
1. Change the encoding format for the entire workspace so that the newly created file is also the encoding format for the new settings.
Eclipse->window->preferences->general->workspacetypes->other->utf-8->ok 
Chinese version:eclipse-> window, general, work space, other->utf-8-> Determine  
2. Project-wide setup encoding format
Project->properties->general->resource->other->utf-8->ok  
3. Encoding format of a file of a type  
Eclipse->window->preferences->general->content types-> Right find the type of file to modify (java,jsp, etc.), the default Encoding input box, enter Utf-8->update->ok 
Chinese version:eclipse-> window Preferences, general-type, content types, on the right, select the type of file you want to modify, and the following default encoding input, update  
4. Single file set encoding format  
in Package Explorer, right click on file--Properties, change the text file encoding format to Utf-8 
Note: Before changing the encoding format for backup, you can also use the Encoding Format Batch conversion tool under the search for a lot of such gadgets under the web.
Eclipse encoding Settings