B
B
Bruh_Bruh2022-03-19 11:45:03
Python
Bruh_Bruh, 2022-03-19 11:45:03

How to display a number as an emoji?

Good day!
I'm trying to display numbers in the cart as emojis like this:
6235956fa1328810607689.png
but it doesn't work.
Take, for example, the icon of a dice, which in the cart itself has the code :game_die: it is displayed normally, and if you take a code of numbers from the cart, for example, :one: :two: :three: then they are not displayed at all as emojis, googled, they say, what should be done through UNICODE, took the unit \U00000031 \U000020E3 , here is the conclusion:
62359733d302f660616596.png
Dice through UNICODE is normally displayed, I think the problem is that the number codes consist of two parts.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita karpov, 2022-03-19
@Bruh_Bruh

Try escaping it all with r ,
or copy the emoji and paste it into the code where you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question