Emoji on macOS has an extra character compared to iOS ⛳️⛳

AI-generated summary

A discussion about an extra Unicode character appearing after an emoji on macOS, but not on iOS. gingerbeardman first reported the issue with the golf flag emoji :in_hole:, showing a square character after it on macOS, but not on iOS. Other users confirmed the issue, with sam noting it only appeared on Mac, not Windows. joffreyjaffeux investigated further, finding the extra character to be U+FE0F, and suspecting the macOS emoji picker as the cause. The issue was also found to occur in plain text files and in Safari, but not in other browsers or apps like TextEdit or Chrome. gingerbeardman has reported the bug to Apple (rdar://36800472).

I typed the golf flag in the subject line using macOS Cmd+Ctrl+Space shortcut to bring up the character picker.

Notice how the emoji has an extra unicode character square after it?

If I type the same subject line on iOS there is no extra character after the golf flag.

Thoughts?

@j.jaffeux can you have a quick look, only appears to repro on mac (I saw it yesterday, but did not see on Windows)

Might just be older versions of OSX? I’m on High Sierra and I see

I can’t reproduce, also on sierra.

However, I copied the end of the title string:

irb(main):005:0> "⛳️".codepoints
=> [9971, 65039]

65039 is https://codepoints.net/U+FE0F which I believe shouldn’t be here.

If I copy the emoji from https://emojipedia.org/flag-in-hole/ and add it to the end of the title, save, and then edit and copy the end of the string:

irb(main):009:0> "⛳".codepoints
=> [9971]

So far my best guess it the macOS emoji picker is doing something it shouldn’t? Can you take a screen of what you see exactly please ? I might have a mac not on sierra, will try tomorrow.

Also I found this Some emojis ending with `\ufe0f` are not completely matched · Issue #28 · mathiasbynens/emoji-regex · GitHub which tend to go in my direction

Now I’m seeing this:

22

I’m on High Sierra 10.13.2 (17C205) with Safari 11.0.2 (13604.4.7.1.6)

Interestingly I don’t see the block character using Chrome.

I’ve reported this bug to Apple, rdar://36800472

I does it in a blank plain text file, so it’s definitely a macOS problem.

emoji.txt (6 Bytes)

Thanks all

What should we see inside the emoji.txt ?

I have the issue with Safari too, but not with TextEdit.