Setting Character Encoding for Java Files

See Also 

By default, the IDE displays and saves all of your files in your system's default character encoding. This character encoding determines how the IDE interprets characters beyond the ASCII character set. You can specify character encoding at the IDE default level or for individual files.

The IDE's encoding settings only determine how the IDE deals with text in the Source Editor. These settings do not affect the encoding settings for compilation.

To set the character encoding for a file:

  1. Right-click the file in the Projects window and choose Properties.
  2. Enter the encoding name in the Encoding property. If you do not want to specify the encoding at this level, leave the property blank.

To set the default character encoding for the IDE or a project:

  1. Choose Tools > Options from the Main Window and click Advanced Options in the Options window.
  2. In the left pane, expand the Editing node and select Java Sources.
  3. Enter the encoding name in the Default Encoding property. To use your system's default encoding, leave the property blank.
See Also
Configuring Java Settings

Legal Notices