Tkinter cant decode emojis from entryy Tkinter cant decode emojis from entryy tkinter tkinter

Tkinter cant decode emojis from entryy


The error is because python uses utf-8 and emojis use a different codec, here's something I found for you: https://pypi.org/project/emoji-encoding/. If you want to change encoding by yourself here is a SO question I found Changing default encoding of Python?.

EDIT 1:

Open the code in notepad, then click 'File' then 'Save As' then click 'Encoding: ANSI' then click UTF-8 then confirm with 'Yes'.

You can remove part of the code to decode emojis because python already does that for you :)

(sorry for the stupid first answer btw)