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.

classification
Title: Cannot encode 5 digit unicode.
Type: Stage:
Components: Unicode Versions: Python 2.3
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: lemburg Nosy List: lemburg, mozbugbox
Priority: normal Keywords:

Created on 2004-06-01 13:58 by mozbugbox, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg20952 - (view) Author: Bugs Fly (mozbugbox) Date: 2004-06-01 13:58
For this unicode point:
  http://www.unicode.org/cgi-bin/GetUnihanData.pl?codepoint=21484

If I do a:
>>> u"\u21484"

or
>>> "\u21484".decode('unicode-escape')

I got 2 character: \u2148 and 4.
outside BMP?

msg20953 - (view) Author: Bugs Fly (mozbugbox) Date: 2004-06-01 14:04
Logged In: YES 
user_id=1033842

It seems that I have to use \U instead of \u here.
History
Date User Action Args
2022-04-11 14:56:04adminsetgithub: 40319
2004-06-01 13:58:36mozbugboxcreate