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: Possible Unicode handling issue in python.
Type: behavior Stage: resolved
Components: Unicode, XML Versions: Python 2.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, ezio.melotti, mike lojkovic, vstinner, zach.ware
Priority: normal Keywords:

Created on 2019-07-09 21:30 by mike lojkovic, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (3)
msg347578 - (view) Author: mike lojkovic (mike lojkovic) Date: 2019-07-09 21:30
Encode error on character '\u2193' was suggested by a tribler developer might indicate a problem with python's handling of unicdoe in specific cases.

https://github.com/Tribler/tribler/issues/4666
msg347579 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2019-07-09 21:40
The error at https://github.com/Tribler/tribler/issues/4666#issuecomment-509500165 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?
msg347581 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2019-07-09 22:01
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.
History
Date User Action Args
2022-04-11 14:59:17adminsetgithub: 81714
2019-07-09 22:06:07zach.waresetnosy: + brett.cannon
2019-07-09 22:02:00zach.waresetstatus: closed

type: compile error -> behavior
components: + Unicode
versions: + Python 2.7, - Python 3.7
nosy: + zach.ware, - brett.cannon
messages: + msg347581
resolution: third party
stage: resolved
2019-07-09 21:40:06brett.cannonsetstatus: open -> (no value)

nosy: + brett.cannon
messages: + msg347579

components: + XML, - Unicode
2019-07-09 21:30:38mike lojkoviccreate