Best practice for handling / disinfecting usernames (accents, punctuation, ...)?

What do you recommend as best practice for processing or disinfecting usernames? In France, Spain, Greece ... even limit the Latin alphabet, you get periods, dashes, apostrophes, ...

What we do is get information from the Facebook api. We get the username if the user installed it, otherwise we take the name and convert it to the username (for example, to log in later). We get things like Clément, D'Aquinne, John M. March, Anne-Sophie Blass, ... you know the exercise.

How did you handle this?

+3
source share
1 answer

Full Unicode support in usernames.

Unicode, ( , ) .

- ASCII, . Unicode: http://en.wikipedia.org/wiki/Unicode_equivalence

, , , , , , . /user/cl ément, /user/clement /user/clëment.

+4
source

Source: https://habr.com/ru/post/1756902/


All Articles