Message94483
| Author |
lemburg |
| Recipients |
amaury.forgeotdarc, christian.heimes, ezio.melotti, lemburg, mark, pitrou, tzot, v+python, vstinner |
| Date |
2009年10月26日.09:19:54 |
| SpamBayes Score |
1.2395183e-06 |
| Marked as misclassified |
No |
| Message-id |
<4AE569B8.4020700@egenix.com> |
| In-reply-to |
<1256548049.57.0.822849999456.issue1602@psf.upfronthosting.co.za> |
| Content |
Mark Summerfield wrote:
>
> Mark Summerfield <mark@qtrac.eu> added the comment:
>
> Glenn Linderman's fix pretty well works for me on XP Home. I can print
> every Unicode character up to and including U+D7FF (although most just
> come out as rectangles, at least I don't get encoding errors).
>
> It fails at U+D800 with message:
>
> UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in
> position 17: surrogates not allowed
>
> I also tried U+D801 and got the same error.
That's normal and expected: D800 is the start of the surrogate
ranges which are only allows in pairs in UTF-8. |
|