---
title: "Comment by Sandeep on \"Printing emojis😏🎉😛😛😝 in python 🐍🐍\" | Hashnode"
description: "Hey, I didn&#39;t know python can do that But, I am getting error when executing above code in python idle. Error: &quot;&quot;&quot; Traceback (most recent cal"
url: "https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf/comment/61bc196c6916c3593a6b0160"
---

[Discussion](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf)

Comment [Printing emojis😏🎉😛😛😝 in python 🐍🐍](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf)

[Sandeep](https://hashnode.com/@sandeepx21)

[Dec 17, 2021](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf/comment/61bc196c6916c3593a6b0160)

Hey, I didn't know python can do that

But, I am getting error when executing above code in python idle.

Error:

""" Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> print("\\U0001f602") UnicodeEncodeError: 'UCS-2' codec can't encode character '\\U0001f602' in position 0: Non-BMP character not supported in Tk """

Do you know the reason behind this error?

[Kelvin John Domeh](https://hashnode.com/@Jhohannes)

[Dec 17, 2021](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf/comment/61bc196c6916c3593a6b0160#reply-61bc654f6916c3593a6b07ce)

Don't know about the error though, buh you can try with the emoji module as well??

Found some solution for you here...hope it works for you

Thank you.

[Sandeep](https://hashnode.com/@sandeepx21)

[Dec 18, 2021](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf/comment/61bc196c6916c3593a6b0160#reply-61bd6d4f6916c3593a6b1711)

[Kelvin John Domeh](https://hashnode.com/@Jhohannes) Thanks i will try the emoji module :)

I think you forgot to include the solution link?

[Sandeep](https://hashnode.com/@sandeepx21)

[Dec 18, 2021](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf/comment/61bc196c6916c3593a6b0160#reply-61bd70c4ef666c58886e9c0b)

[Kelvin John Domeh](https://hashnode.com/@Jhohannes)

UPDATE:

emoji module worked (no color though, only black and white image)

the commands print("\\U0001F600") also working now!!

I think maybe earlier some module was missing that come bundled with emoji module?

[Kelvin John Domeh](https://hashnode.com/@Jhohannes)

[Dec 27, 2021](https://hashnode.com/posts/printing-emojis-in-python/61bbf84a6916c3593a6affbf/comment/61bc196c6916c3593a6b0160#reply-61ca233c5fc5da184732803f)

[Sandeep](https://hashnode.com/@sandeepx21) [stackoverflow.com/questions/32442608/ucs-2-codec-…](https://stackoverflow.com/questions/32442608/ucs-2-codec-cant-encode-characters-in-position-1050-1050)
