New submission from Vyacheslav Rafalskiy: In Python 3.5.4 and 3.6.2, both on Windows and Linux, parsing a manifestly correct xml file like:
xml.etree.ElementTree.parse('bad_file.xml') raises: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 in position 1023: invalid continuation byte Any other Python version I tried works fine, including 2.7.13, 3.5.2 ... ---------- components: XML files: bad_file.xml messages: 300996 nosy: Vyacheslav.Rafalskiy priority: normal severity: normal status: open title: xml.etree.ElementTree fails to parse a document (regression) type: crash versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file47108/bad_file.xml _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31303> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com