Studio ships with UTF-8 encoding enabled by default, but you may wish to change this or set it to a new value.
Setting your workspace encoding
- Select Preferences > General > Workspace.
- Find the Text File Encoding area.
- Ensure the Other radio button is selected and choose a new value from the list.
- Click OK to save your changes.
Setting the encoding of a specific file
- Select the file you are interested in from the Project Explorer view
- Right-click on the file, or select File > Properties
- Under the Resource tab, you will find a Text File Encoding area.
- Ensure the Other radio button is selected and choose a new value from the list.
- Click OK to save your changes.
If you do not see your encoding in the list...
A complete list of Java encodings is available here: http://www.oracle.com/technetwork/java/archive-139210.html. Select the Java encoding you want from the list.
You can manually specify one of the supported encodings from the above web page
- Select one of the previous "Text File Encoding" areas
- Type in a supported encoding, i.e. Shift_JIS, by using the "Canonical
Name" from the above list. Some common encodings:
- Shift_JIS: Japanese
- GB18030: Simplified Chinese
- Click OK