STINNER Victor added the comment: "If a byte sequence can be decoded as a surrogate character and *errors* is not ``"strict"``, then the byte sequence is escaped using the ``"surrogateescape"`` error handler instead of being decoded."
I don't understand this sentence but it sounds to be wrong. The "surrogateescape" is only used if errors="surrogateescape"... If errors is set and is different to "strict" and "surrogateescape", an error is raised. 2012/11/28 Andrew Svetlov <rep...@bugs.python.org>: > > Andrew Svetlov added the comment: > > Really I don't know what's better. Victor, what do you think? > > ---------- > > _______________________________________ > Python tracker <rep...@bugs.python.org> > <http://bugs.python.org/issue16323> > _______________________________________ ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16323> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com