Yash Shete <universeya...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue42318> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com