The Encoding preferences panel is opened from menu Options
> Preferences
> Encoding
The Encoding preferences panel
The encoding preferences are the following:
Encoding for non XML files -
The default encoding to be used when opening non XML documents. This is necessary because
non XML files have a large variety of formats and there is no standard mechanism for
declaring the encoding that should be used for opening and saving the file. In case of XML
files the encoding is usually declared at the beginning of the file in a special declaration
or it assumes the default value UTF-8.
UTF-8 BOM handling - Specifies how to
handle the BOM (Byte Order Mark) for UTF-8 XML documents on the document save action. The
UTF-16 BOM is always preserved. In case of UTF-32 documents the BOM is for big endian.
The
available BOM handling policies are:
Don't Write - Don't write the BOM bytes, the loaded BOM bytes
are ignored;
Write - Write the BOM bytes accordingly with chosen
encoding;
Keep - If the loaded document has BOM then write them
accordingly with chosen encoding. This is the default option.
Encoding errors handling -
This option defines how to handle characters that cannot be represented in the specified
encoding of the document when the document is opened. The available options are:
REPORT - Shows an error dialog with the character that cannot
be represented in the specified encoding and allows the user to decide how to continue
(ignore that character, replace it with a standard replacement character). This is the
default option.
IGNORE - The character is ignored and it will not be included
in the document displayed in the editor panel.
REPLACE - Replace the character with a standard replacement
character. For example if the encoding is UTF-8 the replacement character has the
Unicode code FFFD, and if the encoding is ASCII the character code is
63.