[issue46855] printing a string with strange characters loops forever

Éric Araujo report at bugs.python.org
Sat Feb 26 09:39:48 EST 2022


Éric Araujo <merwok at netwok.org> added the comment:

Note that the original issue seems to be that you had bytes but pasted it as a unicode string.  This works:

>>> b = b'Betrag gr\xc3\xb6\xc3\x9fer als Betrag der Original-Transaktion'
>>> s = b.decode('utf-8')
>>> print(s)
Betrag größer als Betrag der Original-Transaktion

----------
nosy: +eric.araujo

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46855>
_______________________________________


More information about the Python-bugs-list mailing list