127 points · by Amorymeltzer · 3y ago · 79 comments
The WHATWG URL standard mandates nontransitional processing, which says meßagefactory.ca becomes xn--meagefactory-m9a.ca. Firefox and Safari follow the standard.
Chrome and Edge are still using transitional processing. Here's the Chrome bug to switch to nontransitional processing (which appears to be very close to shipping): https://bugs.chromium.org/p/chromium/issues/detail?id=694157
In 2021, Go's HTTP client switched from transitional to nontransitional processing and the relevant issue is quite informative: https://github.com/golang/go/issues/46001
[0]: https://www.cira.ca/blog/byron-holland/internationalized-dom... [1]: https://en.wikipedia.org/wiki/Country_code_top-level_domain [2]: https://www.cira.ca/ca-domains/register-your-ca-domain/domai...
And if we'll ever ditch punycode for real UTF-8, one will have to buy three for backwards conpatibility with punycode.
My national registry does not do administrative building - I have a domain with a (correctly) placed š, but some other guy has the š in his surname substituted with a s in the domain he owns (:
does CIRA actually register alternative domain representations or just reserve them and wait for you to pay?
It's weird that Google prefers the IDN variant under national TLD instead of the non-IDN variant with an IDN counterpart under .eu.
Another interesting phenomenon is that chromium detects suspicious activity and informs the user if he meant to go to š.tld when visiting s.tld. Or vice-versa, depending on which site he opened first I think. It's nice how the browser detects different ownership - this does not happen for other TLDs where I own both domains.
A very quick, probably flawed investigation suggests the Chromium-family behaviour (meßagefactory → messagefactory) might be correct, and Firefox and Safari (meßagefactory → xn--meagefactory-m9a) incorrect: RFC 3492 (Punycode) defers to RFC 3491 (nameprep), which is a profile of RFC 3454 (stringprep), explicitly using its mapping tables B.1 and B.2, and table B.2 says to map ß to ss (“00DF; 0073 0073; Case map”).
I welcome correction or more detail from anyone more knowledgeable on the matter. It’s fiddly stuff and I haven’t dealt with this stuff very much, so I could very easily have missed a trick.
Then again, the Swiss are also crazy people who say nonante for 90, instead of being French and saying quatre-vingt-dix (4x20+10).
That's not crazy, it's just common sense that for some reason the Académie Française, the authority on the French language, refuses to have.
If it is a forbidden character then registrars will not allow you to register xn--meagefactory-m9a.ca, and thus the problem will never exist.
(Hacker News renders it as described in the article, but once you navigate to it your browser will show it)
Kudos to the author!
I recently tried to do something similar on my own website. In terms of bringing back fun and exploration I mean.
My own website has very little content as of yet though.
The most relevant part of my website here is a directory listing of text files that I have. But it only has a couple of files in it yet. One of which is a json file actually because I allowed myself to compromise a little on what is acceptable as “text”.
I might compromise a bit more soon, in order to make the viewing experience for that section of my site more enjoyable on mobile devices. After all, the goal is not specifically for me to restrict myself technologically to the web as it was, but more so to be about like I said, a general vibe of fun and exploration.
I want my site to be something someone can run across randomly, be intrigued by, and find themselves exploring for some time. And preferably that I will make enough content that visitors will come back the next day or the next week to explore a bit more.
I looked at the logs after and noticed that the only hits to the Hebrew one were from me. I don't bother with it anymore. The fact that browsers inconsistently resolve them makes it an idea not worth considering for most countries/languages.
I already had ssz.fr which I occasionally accessed through "ßz.fr", and then ßz.fr became available for registration. I contacted AFNIC but they never really understood what I was talking about. Not that it's a real problem anyway, nobody uses ß in domain names and surely not for .fr domains.
In punycode domain names it's quite simple still.
With other names, it's even worse. No-one cares. Linkers do not, username and filesystem drivers do not. The Apple HFS+ did care a bit one day, until someone in the higher ranks decided that no-one needs unicode security anymore and switched the new APFS to unsafe again.
I registered nick<ninja unicode character>.eth as an ENS domain (which is allowed by the ENS spec[1]). It's pretty hit and miss what services will work with it and what won't. https://xn--nick-ow14c.eth.xyz/ does work though.
I actually had to edit this comment because HN strips the <ninja unicode character> out.
[1] https://docs.ens.domains/frequently-asked-questions#what-abo...
https://adraffy.github.io/ens-normalize.js/test/resolver.htm...
Just noting that the ".link" "check" link on https://adraffy.github.io/ens-normalize.js/test/resolver.htm... isn't working. Unclear is that is a problem with my domain or with .link
While I understand your position, it is very anglocentric. Other countries don't use the Roman alphabet at all and shouldn't be forced to use it, especially when a simple whitelist of Unicode characters would have solved the security issue.
Nitpick: registries are handling it. Registrars usually just use the IDN tables provided by the registries. Mixed script rules in particular are a nightmare to implement perfectly when the tables are not given directly by the registry (for some ccTLDs mainly).
For gTLDs these tables are directly available on iana: https://www.iana.org/domains/idn-tables
$ echo "foo" >"ß.txt"
$ cat "ss.txt"
fooAnother pitfall of Mac filesystems are Unicode normalizations of precomposed characters, which changed between HFS+ and APFS I think.
The correct way to compare Unicode strings case-insensitively involves "case-folding" which directly maps "ß" to "ss".
One more thing to the list of falsehoods programmers believe about Unicode I guess :-)
And the 'e' can be used to encode a diaeresis. For example 'spät' (late) becomes spaet'.
It makes sense to apply this encoding for filenames, since not all software may support Unicode filenames. The file may one day be transfered to anorher OS, etc.
Safari cannot open the page because the server cannot be found.Remember when big tech companies started sending confirmation/survey emails with links to domain names indistinguishable from spoofed ones? 1drv.ms, I'm looking at you.
Now good luck convincing anyone that "xn--meagefactory-m9a.ca" is totally legit.
The comment about the Canadian rules shows that the confusion problem should be handled on the registrar level rather than the url bar.