Earlier quoted context omitted.
Is name validation even possible?
Don't validate names, use transliteration to make them safe for postal services (or whatever). In SQL this is COLLATE, in the command line you can use uconv: >echo "'Lódź'" | uconv -f "UTF-8" -t "UTF-8" -x "Latin-ASCII" >'Lodz'
Charset="WTF-8"
91–100 of 463 posts
Re: Charset="WTF-8"
#92Earlier quoted context omitted.
Yes, it is essential when you want to avoid doing business with customers who have invalid names.
You joke, but when a customer wants to give your company their money, it is our duty as developers to make sure their names are valid . That is so business critical!
Re: Charset="WTF-8"
#93Earlier quoted context omitted.
Is name validation even possible?
Don't validate names, use transliteration to make them safe for postal services (or whatever). In SQL this is COLLATE, in the command line you can use uconv: >echo "'Lódź'" | uconv -f "UTF-8" -t "UTF-8" -x "Latin-ASCII" >'Lodz'
Re: Charset="WTF-8"
#94Re: Charset="WTF-8"
#95Earlier quoted context omitted.
Don't validate names, use transliteration to make them safe for postal services (or whatever). In SQL this is COLLATE, in the command line you can use uconv: >echo "'Lódź'" | uconv -f "UTF-8" -t "UTF-8" -x "Latin-ASCII" >'Lodz'
The name of the city has the L with stroke (pronounced as a W), so it’s Łódź.
Re: Charset="WTF-8"
#96Re: Charset="WTF-8"
#97Earlier quoted context omitted.
name.Length > 0 is probably pretty safe.
That only works if you’re concatenating the first and last name fields. Some people have no last name and thus would fail this validation if the system had fields for first and last name.
Re: Charset="WTF-8"
#98Re: Charset="WTF-8"
#99How do I allow "stępień" while detecting Zalgo-isms?
Re: Charset="WTF-8"
#100Earlier quoted context omitted.
If you just use the {Alphabetic} Unicode character class (100K code points), together with a space, hyphen, and maybe comma, that might get you close. It includes diacritics. I'm curious if anyone can think of any other non-alphabetic characters used in legal names around the world, in other scripts? I wondered about numbers, but the most famous example of that has been overturned: "Originally named X Æ A-12, the chi…
There’s this individual’s name which involves a clock sound: Nǃxau ǂToma[1] [1] https://en.m.wikipedia.org/wiki/N%25C7%2583xau_%C7%82Toma
I was extremely puzzled until I realized you meant a click sound, not a clock sound. Adding to my confusion, the vintage IBM 1401 computer uses ǂ as a record mark character.