Open westurner opened 11 years ago
Everything described by rfc4013 (Stringprep) seems to be covered by slugify. It does NFKC (normalization form into compatibility decomposition + canonical composition), then keeps characters defined as letter or number by the unicode character database (so, no invisible characters).
That said, why anyone would use unicode for usernames is beyond me. There are plenty of chars that look alike.
The
stringprep
routines inpasslib.utils.saslprep
may be relevant to some of the usecases for unicode-slugify.References