Serhiy Storchaka added the comment: The problem is not that an error is raised with coding:utf8, but that it isn't raised with coding:utf-8.
Here is an example with bad iso8859-3. An error is raised as expected. ---------- nosy: +serhiy.storchaka Added file: http://bugs.python.org/file41425/bad_iso8859_3.py _______________________________________ 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