On Thu, Dec 25, 2014 at 12:35 PM, Fidel N <[email protected]> wrote:
I have tried the wikipedia "UTF-8-BOM" and "BOM" and some others, but Leo
> always gives me "invalid @encoding"
>
This message is given when g.isValidEncoding(encoding) returns False,
which returns True only if the following does not throw an exception:
codecs.lookup(encoding)
See https://docs.python.org/2/library/codecs.html
There are several constants in this documentation relating to BOM:
codecs.BOM codecs.BOM_BE codecs.BOM_LE codecs.BOM_UTF8 codecs.BOM_UTF16
codecs.BOM_UTF16_BE codecs.BOM_UTF16_LE codecs.BOM_UTF32 codecs.BOM_UTF32_BE
codecs.BOM_UTF32_LE
And the following may be be helpful:
https://docs.python.org/2/library/codecs.html#module-encodings.utf_8_sig
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.