I am creating a service that can "enter international markets" into markets that do not speak English. I don’t want to limit the username to the ASCII character range, but I would like the user to specify their “natural” username. OK, use UNICODE (and say UTF-8 as text encoding of my name).
But! I do not want users to create “unnamed” user names containing “code” characters. For example, I do not want to allow a username, for example, √√√√√øøøøøøø.
Is there a list of character code points for UNICODE that I can check (possibly with a regex) to accept / reject this username?
Thanks!
source
share