[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

Yash Shete report at bugs.python.org
Fri Nov 13 11:28:24 EST 2020


Yash Shete <universeyash4 at gmail.com> added the comment:

Well for me in Python 3.9.0
print("😀")   prints 😀  and 
 print(ascii("😀"))   prints '\U0001f600'

It does not Raises error "utf-8' codec can't encode characters in position 7-12: surrogates not allowed." as you are suggesting

----------
nosy: +Pixmew

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


More information about the Python-bugs-list mailing list