News for hackers. Stuff that matters.
Re:Charset="WTF-8" by armada651 on Sunday November 24, 2024 @09:25AM (#42228064)
Yes, it is essential when you want to avoid doing business with customers who have invalid names.
Re:Charset="WTF-8" by ryandrake on Sunday November 24, 2024 @09:35AM (#42228129)
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" by xtiansimon on Sunday November 24, 2024 @09:49AM (#42228184)
In legitimate retail, take the money, has always been the motto.

That said, recently I learned about monetary policy in North Korea and sanctions on the import of luxury goods.

Why Nations Fail (2012) by Daron Acemoglu and James Robinson

https://en.wikipedia.org/wiki/United_Nations_Security_Counci...

Re:Charset="WTF-8" by Muromec on Sunday November 24, 2024 @04:01PM (#42230542)
It's not just business necrssary, it's also mandatory to do rigjt under gdpr
Re:Charset="WTF-8" by jandrese on Sunday November 24, 2024 @09:40AM (#42228159)
What if your customer is the artist formerly known as Prince or even X Æ A-12 Musk?
Re:Charset="WTF-8" by chungy on Sunday November 24, 2024 @04:25PM (#42230766)
Prince: "Get over yourself and just use your given name." (Shockingly, his given name actually is Prince; I first thought it was only a stage name)

Musk: Tell Elon to get over his narcissism enough to not use his children as his own vanity projects. This isn't just an Elon problem, many people treat children as vanity projects to fuel their own narcissism. That's not what children are for. Give him a proper name. (and then proceed to enter "X Æ A-12" into your database, it's just text...)

Re:Charset="WTF-8" by jandrese on Monday November 25, 2024 @09:24AM (#42236536)
Sure it is just text, but the context is someone who wrote a isValidHumanName() function.
Re:Charset="WTF-8" by rsynnott on Monday November 25, 2024 @09:07AM (#42236400)
Prince is still mostly screwed, even without spurious validation; Unicode doesn't allow personal symbols. Some discussion here: https://www.unicode.org/mail-arch/unicode-ml/Archives-Old/UM...
Re:Charset="WTF-8" by Diti on Sunday November 24, 2024 @09:33AM (#42228113)
What are “invalid names” in this context? Because, depending on the country the person was born in, a name can be literally anything, so I’m not sure what an invalid name looks like (unless you allow an `eval` of sorts).
Re:Charset="WTF-8" by dgoldstein0 on Sunday November 24, 2024 @03:38PM (#42230346)
Obligatory xkcd https://xkcd.com/327/
Re:Charset="WTF-8" by Muromec on Sunday November 24, 2024 @04:22PM (#42230737)
The non-joke answer for Europe is extened Latin, dashes, spaces and apostrophe sign, separated into two (or three) distinct ordered fields. Just because it's written in a different script originally, doesn't mean it will printed only with that on your id in the country of residence or travel document issued at home. My name isn't written in Latin characters and it's fine. I know you can't even try to pronounce them, so I have it spelled out in above mentioned Latin script.
Re:Charset="WTF-8" by throw_a_grenade on Monday November 25, 2024 @11:38AM (#42237650)
Non-joke answer for Europe is at least Latin, Greek or Cyrillic (български is already one of the official EU languages!). No reason to treat them differently, just don't allow for mixing them so you won't get homoglyphs. EURid (.eu-NIC) gets it mostly right I believe.
Re:Charset="WTF-8" by account42 on Tuesday November 26, 2024 @11:01AM (#42246851)
The non-theoretical answer for Europe is just Latin because the names need to eventually be read by people who don't know Greek or Cyrillic.