Serhiy Storchaka added the comment: The parser should check that the input is actually valid UTF-8 data. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19519> _______________________________________