John Machin <sjmac...@users.sourceforge.net> added the comment: A clue:
>>> print(ascii(b'\xa0\x93\x94\xb7'.decode('cp1252'))) '\xa0\u201c\u201d\xb7' Could be that it only happens where there's a cp1252 character that's not in latin1; see files x93.py and x94.py (have problem) and xa0b7.py (doesn't have problem). Added file: http://bugs.python.org/file12446/py3encbug2.zip _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4742> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com