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

Possible Unicode handling issue in python. #81714

Closed
mikelojkovic mannequin opened this issue Jul 9, 2019 · 3 comments
Closed

Possible Unicode handling issue in python. #81714

mikelojkovic mannequin opened this issue Jul 9, 2019 · 3 comments
Labels
topic-unicode topic-XML type-bug An unexpected behavior, bug, or error

Comments

@mikelojkovic
Copy link
Mannequin

mikelojkovic mannequin commented Jul 9, 2019

BPO 37533
Nosy @brettcannon, @vstinner, @ezio-melotti, @zware

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 = None
closed_at = <Date 2019-07-09.22:02:00.156>
created_at = <Date 2019-07-09.21:30:38.084>
labels = ['expert-XML', 'type-bug', 'expert-unicode']
title = 'Possible Unicode  handling issue in python.'
updated_at = <Date 2019-07-09.22:06:07.685>
user = 'https://bugs.python.org/mikelojkovic'

bugs.python.org fields:

activity = <Date 2019-07-09.22:06:07.685>
actor = 'zach.ware'
assignee = 'none'
closed = True
closed_date = <Date 2019-07-09.22:02:00.156>
closer = 'zach.ware'
components = ['Unicode', 'XML']
creation = <Date 2019-07-09.21:30:38.084>
creator = 'mike lojkovic'
dependencies = []
files = []
hgrepos = []
issue_num = 37533
keywords = []
message_count = 3.0
messages = ['347578', '347579', '347581']
nosy_count = 5.0
nosy_names = ['brett.cannon', 'vstinner', 'ezio.melotti', 'zach.ware', 'mike lojkovic']
pr_nums = []
priority = 'normal'
resolution = 'third party'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue37533'
versions = ['Python 2.7']

@mikelojkovic
Copy link
Mannequin Author

mikelojkovic mannequin commented Jul 9, 2019

Encode error on character '\u2193' was suggested by a tribler developer might indicate a problem with python's handling of unicdoe in specific cases.

Tribler/tribler#4666

@mikelojkovic mikelojkovic mannequin added topic-unicode 3.7 (EOL) end of life build The build process and cross-build labels Jul 9, 2019
@brettcannon
Copy link
Member

The error at Tribler/tribler#4666 (comment) shows that you are trying to encode using ASCII for a Unicode code point that is not compatible with ASCII itself.

Did you specify the encoding to the XML parser you are using?

@zware
Copy link
Member

zware commented Jul 9, 2019

That issue shows a traceback from Python 2.7, which handles Unicode significantly differently than (read "not as well as") Python 3. If the issue can be boiled down to a few lines of Python code that show a real problem in Python 3's Unicode handling (rather than in Tribler or PyQT) please reopen, but for now I see no indication that this is a problem in Python 3. The chances of changing Python 2's Unicode handling in any meaningful way at this point in its lifecycle are nearly nil.

@zware zware added topic-unicode and removed 3.7 (EOL) end of life labels Jul 9, 2019
@zware zware closed this as completed Jul 9, 2019
@zware zware added type-bug An unexpected behavior, bug, or error and removed build The build process and cross-build labels Jul 9, 2019
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-unicode topic-XML type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants