Fun Fact about Emojis
Some emojis are created from multiple emojis - let's see what that means!
Emojis are everywhere - from mobile phones to big screens on Times Square. Since chat apps support the quick way to communicate emotions, the success of the little images is unstoppable. With modern intranets and business chat applications, emojis are also part of everyones work-day.
Fortunately, we usually do not need to care about how they work. But it can still be very interesting to look under the hood. Thanks to JΓΈran Vagnby Lillesand for his lightning talk at NDC Oslo that explained how emojis work. The following is based on the information in the talk and the result of some playing around with javascript and a lot of emojis ;)
The initial question is: How "long" is an emoji?
What's the length of an emoji? or better - how many bytes are needed to represent an emoji in unicode.
'π'.length
1 // makes sense
'πͺ'.length
2 // ook... should be 3 - but javascript is not a math language per se
'π'.length
2 // hmmm...
'ποΈβπ¨οΈ'.length
5 // interesting
'π©ββ€οΈβπβπ¨'.length
11 // wow! the love is big with this one
So, what is this all about? length=1 and length=2 can be explained by javascripts use of UTF-16. In UTF-16 the most used characters are represented by 1 byte, the less often used (not within the first 65536 characters) are represented by 2 bytes.
It's a bit more complex for the other ones. The are actually created from multiple emojis that are combined with an invisible character or - in the case of skin-tones - have a color-modifier behind the main emoji. Click on the following emojis to see what emojis they consist of (or type/paste one into the input area):
Click on an emoji to see its parts.
- ποΈβπ¨οΈ
- π©ββ€οΈβπβπ¨
- ππΎ
- π¨βπ©βπ¦βπ¦
Try your own:
consists ofDepending on your browser and operating system, you might not see all emojis / parts correctly.
Β©viu AG
Imprint