Message94483
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. |
|
Date |
User |
Action |
Args |
2009-10-26 09:19:57 | lemburg | set | recipients:
+ lemburg, tzot, amaury.forgeotdarc, pitrou, vstinner, christian.heimes, mark, ezio.melotti, v+python |
2009-10-26 09:19:55 | lemburg | link | issue1602 messages |
2009-10-26 09:19:55 | lemburg | create | |
|