The Windows command prompt has a lot of limitations with regards to Unicode characters, especially those outside the basic multilingual plane(BMP, or U+0000 to U+FFFF). The command prompt defaults to a legacy OEM encoding (cp437 on US Windows) and has limited font support for characters outside the localized encoding. Find a Python IDE that has good support for UTF-8.

One quick-and-dirty way to see a wide variety of Unicode characters is to write to a file and leverage the browser:

import os
with open('test.htm','w',encoding='utf-8-sig') as f:
    f.write('\U0001f44d')
os.startfile('test.htm')

This displays in the latest Chrome browser on my Windows 10 system.

Answer from Mark Tolonen on Stack Overflow
🌐
PyPI
pypi.org β€Ί project β€Ί emoji
emoji Β· PyPI
The entire set of Emoji codes as defined by the Unicode consortium is supported in addition to a bunch of aliases. By default, only the official list is enabled but doing emoji.emojize(language='alias') enables both the full list and aliases. >>> import emoji >>> print(emoji.emojize('Python is :thumbs_up:')) Python is πŸ‘ >>> print(emoji.emojize('Python is :thumbsup:', language='alias')) Python is πŸ‘ >>> print(emoji.demojize('Python is πŸ‘')) Python is :thumbs_up: >>> print(emoji.emojize("Python is fun :red_heart:")) Python is fun ❀ >>> print(emoji.emojize("Python is fun :red_heart:", variant="emoji_type")) Python is fun ❀️ #red heart, not black heart >>> print(emoji.is_emoji("πŸ‘")) True
Discussions

You can insert Emoji using `\N{NAME_OF_EMOJI}`
Neat. Can't wait to litter my work project with emojis now More on reddit.com
🌐 r/Python
89
1125
November 20, 2021
Inserting an emoji - Python - Code with Mosh Forum
I’m on lesson 1-5. How can I insert an Emoji like Mosh did? He put a cute happy cat face… Thank you. More on forum.codewithmosh.com
🌐 forum.codewithmosh.com
0
August 25, 2021
Not working correctly under Windows 10 with Python 3
You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. ... Under Windows 10, using python 3.7, the only emoji I have successfully gotten to work is the thumbs up one. More on github.com
🌐 github.com
3
September 5, 2018
Emoji's in Python???
It's just strings, and since python3 supports unicode directly in the source by default, and by default strings are in utf8, well, why wouldn't it work? You can get the underlying bytes with fruits[0].encode('utf8'), and see for yourself that it's just a bunch of bytes interpreted as a character. I don't know what source wants you to download an emoji package, maybe for more complex things like composite emojis? More on reddit.com
🌐 r/learnpython
5
27
April 1, 2018
🌐
Data Science Discovery
discovery.cs.illinois.edu β€Ί guides β€Ί Other-Forms-Of-Visualizations β€Ί using-emojis-in-python
Generating Emojis in Python - Data Science Discovery
April 12, 2024 - To generate emojis using Unicode escape sequences, simply use the \U escape sequence followed by the hexadecimal code point for the desired emoji. For example, the Unicode code point for the chipmunk emoji 🐿 is U+1F43F, which can be represented ...
🌐
GitHub
github.com β€Ί carpedm20 β€Ί emoji
GitHub - carpedm20/emoji: emoji terminal output for Python Β· GitHub
The entire set of Emoji codes as defined by the Unicode consortium is supported in addition to a bunch of aliases. By default, only the official list is enabled but doing emoji.emojize(language='alias') enables both the full list and aliases. >>> import emoji >>> print(emoji.emojize('Python is :thumbs_up:')) Python is πŸ‘ >>> print(emoji.emojize('Python is :thumbsup:', language='alias')) Python is πŸ‘ >>> print(emoji.demojize('Python is πŸ‘')) Python is :thumbs_up: >>> print(emoji.emojize("Python is fun :red_heart:")) Python is fun ❀ >>> print(emoji.emojize("Python is fun :red_heart:", variant="emoji_type")) Python is fun ❀️ #red heart, not black heart >>> print(emoji.is_emoji("πŸ‘")) True
Author: carpedm20
🌐
Reddit
reddit.com β€Ί r/python β€Ί you can insert emoji using `\n{name_of_emoji}`
r/Python on Reddit: You can insert Emoji using `\N{NAME_OF_EMOJI}`
November 20, 2021 - This way you can avoid offending Greek people with the thumbs up emoji to name one possible benefit. ... In windows it's WIN + . for emoji selection dialog. It works in JavaScript, Node.js, VSCode Windows 10.
🌐
MakeUseOf
makeuseof.com β€Ί home β€Ί programming β€Ί how to include emojis in your python code
How to Include Emojis in Your Python Code
April 11, 2021 - This library makes it easy to integrate emojis with Python programs. But you need to install this library before using it. Make sure you have pip installed on your system.
Find elsewhere
🌐
Educative
educative.io β€Ί answers β€Ί how-to-use-the-emoji-module-in-python
How to use the emoji module in Python
The emoji.emojize() function returns the emoji corresponding to the CLDR short name passed into it as a paremerer. import emoji # using the thumbs up CLDR short name print(emoji.emojize('Python is really cool :thumbs_up:')) # using the grinning face CLDR short name print(emoji.emojize('Python is really cool :grinning_face:'))
🌐
EmojiFYI
emojifyi.com β€Ί home β€Ί stories β€Ί how to type emojis on windows: complete guide
How to Type Emojis on Windows: Complete Guide β€” EmojiFYI
February 23, 2026 - Learn how to work with emojis in Python: strings, encoding, the emoji library, regex, Unicode normalization, and practi…
🌐
C# Corner
c-sharpcorner.com β€Ί article β€Ί emoji-in-python
Emoji In Python 😎
February 14, 2020 - Emojis exist in various genres, ... emoji are actual pictures instead of typography. Let's start. Open your Visual Studio Code editor and create a Python file....
🌐
Readthedocs
emoji-python.readthedocs.io β€Ί en β€Ί stable
emoji β€” emoji documentation
Release v2.6.0. (Installation) emoji supports Python 3.6+. The last version to support Python 2.7 and 3.5 was v2.4.0.
🌐
Code with Mosh
forum.codewithmosh.com β€Ί python
Inserting an emoji - Python - Code with Mosh Forum
August 25, 2021 - I’m on lesson 1-5. How can I insert an Emoji like Mosh did? He put a cute happy cat face… Thank you.
🌐
GitHub
github.com β€Ί carpedm20 β€Ί emoji β€Ί issues β€Ί 84
Not working correctly under Windows 10 with Python 3 Β· Issue #84 Β· carpedm20/emoji
September 5, 2018 - Kevin.Walchko@DFEC-4508ZK ~ $ python3 Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD6 4)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from emoji import emojize >>> print(emojize(":smile:")) :smile: >>> print(emojize(":thumbs_up:")) πŸ‘
Author: carpedm20
🌐
Medium
medium.com β€Ί analytics-vidhya β€Ί how-to-use-emojis-in-python-d1e5fd8f4135
How to use Emojis in Python?. πŸ‘¨β€πŸ’»πŸ˜Ž | by Shivam Verma
January 29, 2022 - Starting with printing a simple emoji in your notebook: After running the above code, you’ll be able to see this emoji: πŸ’” Β· The emoji_code for each emoji is different, you can find the list of emojis and their codes using the UNICODE function, just use the following code. ... emoji.UNICODE_EMOJI_ENGLISH returns a dictionary, with keys as emojis and values as the emoji’s Unicode and you must use…
🌐
Medium
medium.com β€Ί datastructures β€Ί using-emoji-in-python-777577d05933
Using Emoji in Python. Programming is much more than just… | by Adwiteeya Reyna | Medium
June 29, 2020 - In a nutshell, when you see something like this U+1F916, just replace β€œ+” with β€œ000”. While giving these Unicode as input, we need to prefix it by β€œ\”. ... print(β€œ\U0001F603”); #grinning face with big eyes print(β€œ\U0001F600”); ...
🌐
Code with Mosh
forum.codewithmosh.com β€Ί python
Emojis in print statement? - Python - Code with Mosh Forum
May 16, 2022 - Just started the β€˜Complete Python Mastery’ course and the in the very first Python Example line of code, print("Hello World ") after World he says to insert a happy persian cat. I assume this is some Emojis inserted …
🌐
GeeksforGeeks
geeksforgeeks.org β€Ί python β€Ί python-program-to-print-emojis
Python program to print Emojis - GeeksforGeeks
February 11, 2022 - Using emoji module: Emojis can also be implemented by using the emoji module provided in Python.
Top answer
1 of 1
2

The issue is not with cmd.exe, which just outputs byte strings to the terminal it is running in using whatever encoding is being used.

So, if you run Python in Command Prompt, and get it to print("\U0001F600"), that character will be sent to the terminal.

However, the default Windows Console Host that used to be what you always opened when you ran Command Prompt on previous versions of Windows, does not support UTF-8 characters by default, it uses another encoding. So, you'll end up seeing this:

However, on Windows 11 the new Windows Terminal is the default, and it does have full support and uses UTF-8 by default. If you run Command Prompt using the Windows terminal, you get this:

It's easy to confuse the command interpreter (the actual CLI application) and the terminal it is running in to show what is going on with the input and output streams for the command interpreter.

PowerShell and Command Prompt are command interpreters. Windows Console Host and Windows Terminal are terminals. It's the choice of the latter that limits what can be rendered. The former both support many encodings.

Note that you can also download and install Windows Terminal on Windows 10 - it's just not the default.

Note: you asked if there's anything you can do. You can and this question goes into that, but also note that this is not recommended and has far-reaching impact on other applications. You definitely wouldn't want to force other users of your Python script to have to do the same. Windows Terminal is here to stay, so using it as the new default is the better option.

🌐
DEV Community
dev.to β€Ί _jhohannes β€Ί printing-emojis-in-python-2dgg
Printing emojisπŸ˜πŸŽ‰πŸ˜›πŸ˜›πŸ˜ in python 🐍🐍 - DEV Community
October 24, 2021 - Every emoji we use when chatting all have unicodes and we can use these unicodes in python to output these same emoji.