Next: UTF8Auto, Previous: Syntax, Up: Preferences Commands
Syntax: UTF8 [0|1]
Abbreviation: U8
sets the UTF-8 flag. When this flag is
true, ne
considers the current buffer as UTF-8 coded. Note that
this flag is set automatically upon file loading (if possible) if you
required automatic detection. See UTF8Auto.
If you invoke UTF8
with no arguments, it will toggle the flag.
If you specify 0 or 1, the flag will be set to false or true,
respectively. When you try to set this flag, the buffer will be checked
for UTF-8 compliance, and you will get an error message in case of
failure. When you try to reset it, the buffer is set to ASCII or
ISO8859, depending on its content. A 'U' will appear on the
status bar if the flag is true. Alternatively, an 'A' or an
'8' will be displayed to denote whether the buffer is composed
exclusively by US-ASCII characters, or also by other 8-bit characters
(which are likely to be ISO-8859 encoded). Note that each time this
command modifies the buffer encoding, it also resets the undo buffer.