Nick Coghlan added the comment: Indeed, 'utf-7' and the 'replace' error handler don't get along in this case. ---------- nosy: +ncoghlan _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19279> _______________________________________