Encoded file

Paul Watson pwatson at redlinepy.com
Wed Mar 17 22:36:58 EST 2004


<pengz1 at netzero.com> wrote in message
news:mailman.104.1079555760.742.python-list at python.org...
>
> Hi!
> Could I ask you, how can I know a file is encoded as 'UTF-8', 'UTF-16' or
something else? Thanks in advance.
>
> Zhi

While there are BOM (Byte Order Mark) indicators specified by the Unicode
standard, very few files actually have them.

In general, this is still an old-fashioned protocol.  You can ask the person
or look at the code that created the file.





More information about the Python-list mailing list