Broken (Flag)-Emoji Support in usernames due to removal of U+200D (Zero Width Joiner)
under review
ubahnverleih🏳️⚧️
When adding a Emoji to the username some very common emojis break, because the unicode character
U+200D
is removed while saving the changed username. Popular Emojis like 🏳️🌈 or 🏳️⚧️ result in double emojis like 🏳️🌈 or 🏳️⚧️. As flags seems to play a important role in this game, this might worth fixing.This might also effect normale charcters/character combination in some languages like some indian languages as it is descriped here: https://en.wikipedia.org/wiki/Zero-width_joiner
## Technical details:
Newer emojis, or some more complex emojis consists of two emojis "glued" together with the unicode character
U+200D
(Zero Width Joiner/ZWJ).The bug seems to be somewere in the API as the bug also consists if the unicode characters get written in the escaped form in the JSON payload
{"nick":"\ud83c\udff3\ufe0f\u200d\u26a7\ufe0f","countryCode":"de"}
in a POST request to the API endpoint /api/v3/profiles/
- the result is 🏳️⚧️ but it should be 🏳️⚧️.🌲
Im pretty sure its because people kept making themselves have no username with this character so they broke emojis trying to prevent that from happening
Filip
under review