Search code examples
pythonpycharmemojipython-idlewindows-terminal

Print emojis in windows terminal Python


Here's the code:

import emoji
import time

print("\U0001F600")
time.sleep(50)

Here's the output when I run in the python idle shell thingo: output in idle shell

Here's the output when I run the program in windows terminal thingo: output in windows terminal

I've got this game thing I'm working on for an assignment, and I've simply just copy pasted emojis into the print function, and when I run it in PyCharm, it works just like in idle shell. But when I turn it into an executable using the pyinstaller module thing, it just shows ? instead of the emoji.

By the way, I'm not that advanced in this kinda thing, so I'd appreciate if someone could explain how to fix this problem :)


Solution

  • This does not work in the normal cmd console. If so, you need the Terminal

    My results

    (In addition, you do not need the emoji module for your method)