Can you allow emoji in usernames

AI-generated summary

Can you allow emoji in usernames?

a_lilian is trying to enable the use of emoji in usernames on their site. They found a setting to broaden unicode options for usernames, but it doesn’t seem to work with emoji. gerhard explained that emoji cannot be allowed in usernames because they aren’t considered letters. According to gerhard, Discourse only permits letters, marks, and numbers by default, and the setting can only restrict these characters, not allow additional ones like emoji. a_lilian thanked gerhard for the answer, indicating that the feature is not currently possible.

Hello there! My site has users who would like to use emoji in their usernames and I’m trying to find out if that’s possible for them. I was able to find the setting that lets you broaden the unicode options for usernames:

but as far as I can tell, it doesn’t seem to work with emoji. Here’s two cases, one where things work as I’d expect and one where they don’t:

Case 1 - Working as Expected :white_check_mark:

Unicode usernames are allowed, certain non-ASCII unicode characters are permitted:

Results in a username using those characters being accepted:

Case 2 - Not Working as Expected :cross_mark:

Unicode usernames are allowed, specific emoji characters are permitted:

But a username using the permitted character is not accepted:

I get the same result if I leave allowed unicode username characters blank, i.e. permitting everything with no regex whitelist for characters.

My Question:

Is it possible to allow emoji in usernames?

No, it’s not possible to allow Emojis within usernames. They aren’t considered a letter.

Alas. Well, thank you for the answer!