While I was writing my new article I found out about really cool thing I am going to share with you.
Check out this emoji containing 4 people π©βπ©βπ¦βπ¦.
While I was trying to delete π©βπ©βπ¦βπ¦ in VSCode using backspace it
didn't disappear, but it just changed to this π©βπ©βπ¦. After hitting another backspace it changed to π©βπ© then to π© and then it finally disappeared. So it goes
π©βπ©βπ¦βπ¦ β« π©βπ©βπ¦ β« π©βπ© β« π© β«
Why this happens?
When we look on the decoded symbols, we can see that the symbols are equal to this in hex:
π©βπ©βπ¦βπ¦: 0x1f469 0x200d 0x1f469 0x200d 0x1f466 0x200d 0x1f466
π©βπ©βπ¦βπ¦: 0x1f469 0x200d 0x1f469 0x200d 0x1f466
π©βπ©: 0x1f469 0x200d 0x1f469
π©: 0x1f469
While 0x200d character is a "ZERO WIDTH JOINER" which tells the renderer, that the preceding and following characters should join each other. π
So it is like π© + π© + π¦ + π¦.
Cool isn't it?
PS:
Removing of single woman works as well, so this π©βπ¦βπ¦ can transformed to the hex code like this: 0x1f469 0x200d 0x1f466 0x200d 0x1f466
Top comments (0)