[issue25937] DIfference between utf8 and utf-8 when i define python source code encoding.
Serhiy Storchaka
report at bugs.python.org
Sat Dec 26 20:05:15 EST 2015
Serhiy Storchaka added the comment:
> I wonder why this does not trigger the exception.
Because in case of utf-8 and iso-8859-1 decoding and encoding steps are omitted.
In general case the input is decoded from specified encoding and than encoded to UTF-8 for parser. But for utf-8 and iso-8859-1 encodings the parser gets the raw data.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25937>
_______________________________________
More information about the Python-bugs-list
mailing list