How does one allow a subset of UNICODE codepoints in input validation?
codepoint, unicode, validation
Solution
Unicode has several categories, so you can easily exclude symbols. How exactly to do that depends on the language you are using. Some regex frameworks have that feature built-in, some don't.
Problem
I am creating a service that could "go international" to non-English speaking markets. I do not want to restrict a username to the ASCII range of characters but would like to allow a user to specify their "natural" username. OK, use UNICODE (and say UTF-8 as my username text encoding). But! I don't want users to create "non-name" usernames that contain "symbol" code points. For instance, I don't want to allow a username like √√√√√√øøøøø. Is there a list of "symbol" code points for UNICODE that I can check (perhaps with a regex) to accept/reject a given username? Thanks!