Not legal in Canada. Your legal name must use Latin characters only. This is a sore point for indigenous people.
Programmer Humor
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
Hello my name is JohnDoe. My name only contains Latin characters, no spaces allowed.
Ah, but you see, "John" and "Doe" are two names - first and last - and when you say "My name is", you're really listing out your names, with spaces inbetween!
But then there's hyphenated names, and I have no idea how those are treated.
"John Doe"
vs ["John", "Doe"]
vs {"firstName":"John", "lastName":"Doe"}
Na, names are about pronunciation (how you call someone). Written letters are an approximation of that. You can't pronounce a newline, so there's that.
But differently spelled names are legally distinct.
i think they mean that pronounciation matters for determing validity, not for the actual record or distinguishing between names
asking questions like this is how i found out that one of the allowed characters in names in my country is ÿ, which is fine in Latin-1 but in 7-bit ASCII is DEL
.
This sounds like it would create a whole list of fun and irritating edge conditions for some poor bugger to debug. Love it.
If someone else has to debug the problems caused by a parent naming their child with a special character, does that make the parent the bugger? 🤔
"We call her Carrie, because of the carriage return."
You can also try to give the child NULL as middle name for additional fun.
someone tried that with their license plate, it turned out well: https://www.wired.com/story/null-license-plate-landed-one-hacker-ticket-hell/
edit: archive link
I just realized that the shitty software on the other side of the divide is casting null
to ”null", which absolutely explains that issue. What a cluster
Yeah, I love to rag on languages with weak typing, because of the potential for a bug, but seeing it play out in reality, directly with user input, that's certainly something else.
He is being too nice. He needs to get a lawyer and sue that shitty company for harassment and whatever else.
ETA: The US isn't overly litigious. We are under litigious if anything.
Large corporations are overly litigious. Individuals can't afford to be litigious enough.
Ca\r\rie
If elected president my first order of business will be to make all birth certificates fully unicode compatible.
A line break is a non-printable character. So it would only work in the scope of electronic storage. The minute it hits other media, the line break character is subject to how that media handles it’s presence, and then it is lost permanently from that step forward.
Plus, many input forms make use of validation that will just trim anything that isn’t a character or number, removing the line break character.
A line break doesnt have to be electronic only. You just... start a new line on the paper.
If it were somehow legally allowed, the sanitization would be incorrect.
As someone with a very mildly unusual name, I can tell you that it doesn't matter whether a system could or could not meaningfully represent the name. Often the people or systems just refuse to acknowledge any deviation from what's expected. Sometimes databases are written to enforce arbitrary grammatical rules that make my name impossible to write, or the people using the systems will just "correct" the "error" without telling me. I don't mind that much but our normative systems just love to homogenise us.
There are a frightening number of systems that don't allow "-", which isn't even an edge case. A lot of people - mostly women - hyphenate their last names on marriage, rather than throw their old name away. My wife did. She legally changed her name when she came of age, and when we met and married years later she said, "I paid for money for my name; I'm not letting it go." (Note: I wasn't pressuring her to take my name.) So she hyphenated it, and has come to regret the decision. She says she should have switched, or not, but the hyphen causes problems everywhere. It's not a legal character in a lot of systems, including some government systems.
It boggles my mind how so many websites and platforms incorrectly say my e-mail address is 'invalid' because it has an apostrophe in it.
No. It is NOT invalid. I have been receiving e-mails for years. You just have a shitty developer.
That's easy, just call it Jhon\nDoe
John\0Doe will fuck with all C (and C based derivatives) software that touches it.
Nah, it will end up simply as "John" in the database. You need "John%sDoe" to crash C software with unsafe printf() calls, and even then it's better to use several "%s"
Just noticed that the listing for ; DROP TABLE "COMPANIES"; -- LTD has been redacted by the government website‽