W
W
WotanWeb2020-05-01 17:32:50
Character encoding
WotanWeb, 2020-05-01 17:32:50

How to validate names in different languages?

Greetings!
Has anyone had experience validating multilingual names?
Those. names written, in theory, in any language should be allowed. But at the same time, prohibit symbols.

The only thing I could come up with/found was insanely wrong - disallowing a specific list of characters (#[email protected]%^& etc). But there are insanely many of these characters in Unicode ...

Maybe there is some other option?
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Pastukhov, 2020-05-01
@tyllo

You need to look in the direction of p{L}
There may be a dash in the names and who knows what languages ​​have some other special characters

R
Rsa97, 2020-05-01
@Rsa97

There is no silver bullet here.
https://habr.com/en/post/431866/
https://www.w3.org/International/questions/qa-pers...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question