News for hackers. Stuff that matters.
Re:Charset="WTF-8" by josephcsible on Sunday November 24, 2024 @04:50PM (#42230939)
What would be wrong with "enter your name as it appears in the machine-readable zone of your passport" (or "would appear" for people who have never gotten one)? Isn't that the one standard format for names that actually is universal?
Re:Charset="WTF-8" by ahoka on Sunday November 24, 2024 @04:55PM (#42230971)
I would like to use my name as my parents gave it to me, thanks. Is that too much to ask for?
Re:Charset="WTF-8" by richardwhiuk on Sunday November 24, 2024 @05:13PM (#42231089)
How much flexibility are we giving parents in what they name children?

If a parent invented a totally new glyph, would supporting that be a requirement?

Re:Charset="WTF-8" by Muromec on Sunday November 24, 2024 @09:01PM (#42232513)
Luckily, there is a vital records keeping office which already bothered to check with the law on that matter and if they can write it, so can you.
Re:Charset="WTF-8" by account42 on Wednesday November 27, 2024 @07:26AM (#42255513)
If your parents were smartasses, then yes.
Re:Charset="WTF-8" by crooked-v on Sunday November 24, 2024 @07:19PM (#42231888)
From experience, it's not actually universal. Visa applications will often ask for name information not encoded in the MRZ.
Re:Charset="WTF-8" by ks2048 on Sunday November 24, 2024 @05:36PM (#42231228)
There's the problem that "appears" is a visible phenomenon and unicode strings can contain non-visible characters and multiple ways to represent the same visible information. Normalization is supposed to help here, but some sites may fail to do this or do incorrectly, etc.
Re:Charset="WTF-8" by josephcsible on Sunday November 24, 2024 @06:14PM (#42231435)
But the MRZ of a passport doesn't contain any of those problem characters.
Re:Charset="WTF-8" by ks2048 on Sunday November 24, 2024 @07:38PM (#42232012)
But on some random website, with people copy-pasting from who-knows-what, they will have to normalize or validate, etc. to deal with such characters.
Re:Charset="WTF-8" by josephcsible on Sunday November 24, 2024 @09:41PM (#42232734)
The point is if the standard were to enter it like in the MRZ, it would be easy to validate.
Re:Charset="WTF-8" by Muromec on Sunday November 24, 2024 @08:59PM (#42232503)
The problem is, people exists that have É in their name and will go to court when you spell it as E, the court will also say that 1 ) you have the technical ability to write it as É and 2) they have a right to have their name spelled correctly. Also it's not nice and bad for business to be like this.
Re:Charset="WTF-8" by josephcsible on Sunday November 24, 2024 @09:48PM (#42232774)
> they have a right to have their name spelled correctly

IMO, having the law consider this as an unconditional right is the root of the problem. What happens when people start making up their own characters that aren't in Unicode to put in their names?

> Also it's not nice and bad for business to be like this.

What about having a validated "legal name" for everything official and an unvalidated "display name" that's only ever parroted back to the person who entered it?

Re:Charset="WTF-8" by Muromec on Monday November 25, 2024 @12:03AM (#42233384)
> What happens when people start making up their own characters that aren't in Unicode to put in their names?

They first have to fight the Unicode committee and maybe they actually have a point and the character is made up in a way that is acceptable in a society. Then they will fight their local authorities who run everything on 30 years old system. Only after they become your problem, at which point you fix your cursed regexp.

>an unvalidated "display name" that's only ever parroted back to the person who entered it?

You will do that wrong too. When you send me an email, I would expect my name to be in different form compared to what you display in the active user widget.

The point is, you need to know the exact context in which the name is used and also communicate it to me so I can tell you the right thing to display.