This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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.
History
Date User Action Args
2009-10-26 09:19:57lemburgsetrecipients: + lemburg, tzot, amaury.forgeotdarc, pitrou, vstinner, christian.heimes, mark, ezio.melotti, v+python
2009-10-26 09:19:55lemburglinkissue1602 messages
2009-10-26 09:19:55lemburgcreate