The Encoding preferences panel is opened from menu Encoding
→ +This option defines the default encoding to be used when opening non XML documents.
This option defines how to handle the BOM (Byte Order Mark) on document save.
The available options 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.
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 - Show an error dialog with the character that cannot be represented in the specified encoding and allow 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.