Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot encode 5 digit unicode. #40319

Closed
mozbugbox mannequin opened this issue Jun 1, 2004 · 2 comments
Closed

Cannot encode 5 digit unicode. #40319

mozbugbox mannequin opened this issue Jun 1, 2004 · 2 comments
Assignees

Comments

@mozbugbox
Copy link
Mannequin

mozbugbox mannequin commented Jun 1, 2004

BPO 964284
Nosy @malemburg

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/malemburg'
closed_at = <Date 2004-06-01.14:04:19.000>
created_at = <Date 2004-06-01.13:58:36.000>
labels = ['expert-unicode']
title = 'Cannot encode 5 digit unicode.'
updated_at = <Date 2004-06-01.14:04:19.000>
user = 'https://bugs.python.org/mozbugbox'

bugs.python.org fields:

activity = <Date 2004-06-01.14:04:19.000>
actor = 'mozbugbox'
assignee = 'lemburg'
closed = True
closed_date = None
closer = None
components = ['Unicode']
creation = <Date 2004-06-01.13:58:36.000>
creator = 'mozbugbox'
dependencies = []
files = []
hgrepos = []
issue_num = 964284
keywords = []
message_count = 2.0
messages = ['20952', '20953']
nosy_count = 2.0
nosy_names = ['lemburg', 'mozbugbox']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue964284'
versions = ['Python 2.3']

@mozbugbox
Copy link
Mannequin Author

mozbugbox mannequin commented Jun 1, 2004

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?

@mozbugbox mozbugbox mannequin closed this as completed Jun 1, 2004
@mozbugbox mozbugbox mannequin assigned malemburg Jun 1, 2004
@mozbugbox mozbugbox mannequin added the topic-unicode label Jun 1, 2004
@mozbugbox
Copy link
Mannequin Author

mozbugbox mannequin commented Jun 1, 2004

Logged In: YES
user_id=1033842

It seems that I have to use \U instead of \u here.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant