Message176547
"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 <report@bugs.python.org>:
>
> Andrew Svetlov added the comment:
>
> Really I don't know what's better. Victor, what do you think?
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue16323>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2012-11-28 15:00:07 | vstinner | set | recipients:
+ vstinner, ezio.melotti, asvetlov, docs@python, python-dev, berker.peksag, serhiy.storchaka |
2012-11-28 15:00:06 | vstinner | link | issue16323 messages |
2012-11-28 15:00:05 | vstinner | create | |
|