What does u'\ufe0f' in an emoji mean? Is it the same if I delete it? What does u'\ufe0f' in an emoji mean? Is it the same if I delete it? python python

What does u'\ufe0f' in an emoji mean? Is it the same if I delete it?


That's the Variant Form, which provides more information for those displays, that are capable of displaying with colour and other things.

This chart gives you the difference between FE0F and FE0E:

enter image description here

You could consider that the FE0E version is the unicode text version, and the FE0F version is with graphics (those which are capable will display graphically), which gracefully degrades to text version, when graphical display is not available.


In Unicode the value U+FE0F is called a variation selector. The variation selector in the case of emoji is to tell the system rendering the character how it should treat the value. That is, whether it should be treated as text, or as an image which could have additional properties, like color or animation.

For emoji there are two different variation selectors that can be applied, U+FE0E and U+FE0F. U+FE0E specifies that the emoji should be presented like text. U+FE0F specifies that it should be presented as an image, with color and possible animation.

Without the variation selector the character still renders fine, (just look at the page source at this character: ☁) but there's no additional information about presentation.