Hi guys,
What would you recommend as best practice to handle or sanitize usernames ? In France, Spain, Greece, ... to even limit to latin alphabet, you'll get periods, dashes, apostrophes, ....
What we're doing is getting info from Facebook api. We get the username if the user have set it, otherwise we take the name and transform it to a username (to login later on, for instance). We get things like Clément, D'Aquinne, John M. March, Anne-Sophie Blass, ... you know the drill.
How have you handled this ?