Message153191
| Author |
vstinner |
| Recipients |
cvrebert, docs@python, eli.bendersky, eric.araujo, ezio.melotti, ncoghlan, pitrou, vstinner |
| Date |
2012年02月12日.09:55:48 |
| SpamBayes Score |
2.9886107e-05 |
| Marked as misclassified |
No |
| Message-id |
<CAMpsgwaUJLrgJXj6nfkK=ajqx-8fLk2uRFLEZyFsjmXG+W1Pmw@mail.gmail.com> |
| In-reply-to |
<1329038378.58.0.474374234993.issue13997@psf.upfronthosting.co.za> |
| Content |
Why do you use Unicode with the ugly surrogateescape error handler in
this case? Bytes are just fine for such usecase.
The surrogateescape error handler produces unusual characters in range
U+DC80-U+DCFF which cannot be printed to a console because sys.stdout
uses the strict error handler, and sys.stderr uses the
backslashreplace error handler. If I remember correctly, only UTF-7
encoder allow lone surrogate characters. |
|