Hacker News new | ask | show | jobs
by BadBadJellyBean 41 days ago
What is the alternative? ASCII isn't it because there isn't only English out there. All the different encodings we had before weren't it either.

Having only ASCII in urls is incredible US centric. Yes it brings problems, yes they are solvable. It takes work to not have US and it's writing system to be the center of everything.

2 comments

A single language per file
... might sound like a reasonable solution until you start trying to write about languages. It is unreasonable for a sentence like "In Japanese, the word for 'hello' is こんにちは; in Korean, it's 안녕하세요." to be unrepresentable.
Then language change tags which draw a box around the different language.
Why use that when a "simple" dictionary structure mapping codepoint to language exists? It's called Unicode.
We tried that in the 1980s with MS/PC/DR-DOS and code pages. We also had BBS networks where people shared such files around the world. One language per file turned out to be a bad idea.
To be fair, that was actually one language per computer.
Oh, it really wasn't. If you want the terrible reality, start with how FidoNet CHARSET and CHRS 'kludge lines' tried to make this work.
UCS-2. What Javascript uses.
Javascript uses UTF-16, not UCS-2. An tragic historical mistake. I imagine they would use UTF-8 if they got a chance to do it all over again.
It's because JavaScript was created in 1995. At that time, everyone believed UCS-2 was "all you'd ever need". Well, Westerners believed it. It's why Han Unification existed; to try to perpetuate that lie. It's why Windows is UTF-16 at its core.
Witching the default encoding is easy. Ask the python people. /s