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 <rep...@bugs.python.org> <http://bugs.python.org/issue25937> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com