Hallo,
> Your second sentence contradicts the first. Perhaps you meant 
> something different. Cookies are declarations at the start of the
> file like # -*- coding: utf-8 -*-

woh, I've been quite tired when writing this :D
Of course I'd expect Scite to write a BOM when I choose "UTF-8 Cookie"
and I do not expect a BOM when I choose "UTF-8" in the options menu.

However Scite seems to do that the other way around, which I find
very confusing.

> I am not a Unicode guru, but I have just read a discussion on the 
> issues with UTF-8 and other encodings in the Lua mailing list. One 
> fact that came out is that there is no way, by design, to detect 
> automatically UTF-8 encoding, if there is neither a Bom nor some 
> cookie like Python's

Neither me (Unicode guru) yet this simple editor for windows does a
fairly good job at detecting utf8 encoded files without a BOM.
source code: http://www.flos-freeware.ch/zip/np2src.zip
The file 'Edit.c' is interesting here.

So it seems there is a way however it may be crude (I suspect so)

tom
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to