Text operations considering emojis as multiple characters

Some emojis seem to be considered multiple characters. For example, the :green_square: emoji is considered two, and if you try to get the first letter of it, it turns into � (which is apparently the “replacement glyph”).


image

This is not the same for all emojis. For example, the :black_large_square: emoji is considered one character.


image

1 Like

This is a Unicode standard. Most emojis are two characters: A base character, like the square emoji, followed by a modifier character, like what color the square is.

You can check this with a character counting website if you want to verify for yourself.

Oh, ok. It still causes troublesome issues though.

I’m going to mark a solution

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.