28 Dec
2005
28 Dec
'05
1:48 p.m.
Hi, A long time ago, Hans wrote:
Patrick Gundlach wrote:
are you sure that your scite does not use utf-16 and puts the BOM (byte order mark) there?
scite indeed does this (kind of annoying)
It is the BOM, in utf-8 file encoding. A bit pointless (utf-8 is based on opcodes instead of byte ordering), but is allowed by the unicode specification.
context can handle that for xml files
i can consider handling it automatically (i.e. when BOM before first start-stop, then assume utf-8)
It is a safe bet that any document that starts with the three bytes 0xEF 0xBB 0xBF is encoded as UTF-8, esp. if it is supposed to be text input. Cheers, Taco