Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
calvin 🛋️
calvin 🛋️
@calvin@fedi.sphericalcow.space  ·  activity timestamp last week

What's the difference between ☄ and ☄️?

The hexcodes start the same but the latter is longer:

☄: e2 98 84

☄️: e2 98 84 ef b8 8f

Are both considered to be "emoji"?

#emoji #unicode

Pleroma

Pleroma

  • Copy link
  • Flag this post
  • Block
🔏 Matthias Wiesmann
🔏 Matthias Wiesmann
@thias@mastodon.social replied  ·  activity timestamp last week

@calvin They are technically the same codepoint, the second is just followed by the emoji variation selector. In this context, emoji means "the colour version". Other definitions are available.

  • Copy link
  • Flag this comment
  • Block
calvin 🛋️
calvin 🛋️
@calvin@fedi.sphericalcow.space replied  ·  activity timestamp last week

@thias thanks for the explanation!

I see now, looking at the differennt emoji with skin colour variation, it is the same thing as the two comets. Cool!

I thought various different text incoding (which I know very little about) had specific byte-sizes per character. But I guess some sets of bytes modify the previous character.

  • Copy link
  • Flag this comment
  • Block
Codepoints.net
Codepoints.net
@codepoints@typo.social replied  ·  activity timestamp last week

@calvin like @thias said, the second one are “two code points in a trenchcoat”. Unicode specified a means of defining if a character should be shown as emoji or as b/w text by adding either U+FE0F or U+FE0E to it. That was to prevent double encoding of stuff that was both present in old “WingDings” like fonts and turn-of-the-century emojis.

\xEF\xB8\x8F is the UTF-8 encoding of the U+FE0F character.

https://codepoints.net/U+FE0F

Codepoints.net

U+FE0F VARIATION SELECTOR-16

◌️, codepoint U+FE0F VARIATION SELECTOR-16 in Unicode, is located in the block “Variation Selectors”. It belongs to the Inherited script and is a Nonspacing Mark.
  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.7 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct