Unicode usernames and group names

@pfaffman Thanks. That’s not what I meant, I meant:

username__ or username_ or user_name

User_Name and _Username should work, but it won’t allow Username_ (“Username must end with a letter or a number”)

2 Likes

Thanks. Is there a way to change it?

There is not an easy way.

1 Like

Thank you Jay, I appreciate it

1 Like

I tried to allow Japanese characters as username but failed. However, allowing Chinese only with \p{Han} takes effect. Is this method not usable anymore?

It should still work. Did you forget the braces at the beginning and end? It should be [\p{Han}\p{Katakana}\p{Hiragana}] – otherwise could you please provide example usernames that didn’t work?

3 Likes

Thank you!! It works now. The default value of this field was \p{Han} so I thought the braces were not necessary. :flushed:

2 Likes

3 posts were split to a new topic: Issue with renaming user with unicode characters

I wonder why? The username settings are once again restricted to alphanumeric etc. Can’t enter kanji or kana.


It was okay before.

It is now impossible to save user names consisting of kanji and kana.

1 Like

Are you getting an error? Can you sign up with a Kanji username?

Is [\p{Han}\p{Katakana}\p{Hiragana}] the value of the allowed unicode username characters site setting? Could you please reply with the username that didn’t work as text, not screenshot, so that we can give it a try.

2 Likes

I’m very sorry. It’s been resolved.
There is no problem with the system.
Rather, the long horizontal line in the Japanese pronunciation was not recognized as a kanji. I removed the horizontal lines later in the test and it works fine. Thank you very much for your concern.

3 Likes

Hello, but how can I set this option. In my Language we have this - č,š,đ,ž,dž. I don t know what to do, I have Problem by Sign In.

1 Like

Great to know this has been allowed! I am interested in allowing apostrophes and macrons. Could someone please help me with what I would need to enter in ‘Allowed unicode username characters’ in order to do this?

2 Likes

By default, all Unicode letters and numbers are allowed when you enable unicode_usernames. Characters with a macron are allowed Unicode characters as well.

If you want to restrict the Unicode characters to characters with a macron, then I’d set the allowed_unicode_username_characters site setting to the following value:

[āǟǡǣḇc̄ḏēḕḗḡẖīḵḻḹm̄ṉn̄ōṓṑȫǭȭȱr̄ṟṝṯūǖṻȳẕ]

If you would like to allow only a subset of those characters, remove everything you don’t need from the list of characters.

Apostrophes aren’t a letter, so they aren’t allowed, and it’s not possible to add them to an allowlist. The reason is that allowing apostrophes in usernames could break functionality like mentions or quotes.

6 Likes