Defining Character Encoding for Text Files

Text files do not include encoding declarations. Consequently, Eclipse editors attempt to use the most suitable character encoding, based on preference definitions or on the file content. For example, the default encoding for a Java properties file is ISO-8859-1. You may need to change the encoding to UTF-8 to ensure that the characters display correctly in the Properties File editor.

To define character encoding for text files:

  1. In Design Studio, open the text file.

  2. From the Edit menu, select Set Encoding.

    The Set Encoding dialog box appears.

  3. Select Other.

    A list of available options becomes available.

  4. Select a different encoding to associate with the file.

  5. Click Apply, then click OK.