News for hackers. Stuff that matters.
Re:Why I use Firefox by crazygringo on Wednesday February 28, 2024 @09:05AM (#39538065)
> xn--ime-zza.eu

> šime.eu

Looks like HN needs Punycode support [1] when it displays the domain name after the article title.

[1] https://en.wikipedia.org/wiki/Punycode

Re:Why I use Firefox by samatman on Wednesday February 28, 2024 @10:14AM (#39538971)
> when it displays the domain name

That is the domain name.

I'm glad that Hacker News, the site for hackers, displays the domain name, and not the rendered display version of the domain name. Other places can and should do it differently, it's the right choice here.

Re:Why I use Firefox by crazygringo on Wednesday February 28, 2024 @11:41AM (#39540409)
But I can't read the ASCII encoding. It's gibberish. It tells me nothing about which site I'm on. It's unintelligible.

I can't understand why you think the underlying ASCII encoding should be used, instead of the Unicode domain that actually gets rendered in the browser's address bar.

That makes as much sense as saying accented characters in the comments section should be displayed as raw ASCII bytes instead of correctly interpreted as UTF-8 characters. Or that domains shouldn't even be displayed as letters but just as sequences of numbers that are the code points.

The whole point of a domain is to be semantically meaningful. Otherwise we'd just use IP addresses.

Re:Why I use Firefox by samatman on Wednesday February 28, 2024 @02:31PM (#39542506)
In the comments, UTF-8 is the encoding, so it makes sense to display it (although you'll notice that some characters are filtered out, emoji most of all).

In a domain name, punycode is the encoding. The actual domain name, the one you'd need to run DNS and such, is what you see. Also, rendering it into unicode is a vector for attacks. So it's the wrong choice here, where no one wants to deal with the aggravation of knowing that confusables can be slipped into domain names at any time.

Re:Why I use Firefox by crazygringo on Wednesday February 28, 2024 @03:29PM (#39543090)
> The actual domain name, the one you'd need to run DNS and such, is what you see.

But it's not something we should see. It's terrible UX for the reasons I presented. I don't ever want to see the underlying gibberish in a context where I'm reading and commenting on the web.

This is a forum for discussing news articles from sites. Gibberish is not what you ever want to see.

And the idea of being a vector for attacks doesn't hold water. Yes it's true in a theoretical sense, but anything can be a vector for attacks. If the Unicode version of the domain name is safe enough for major browsers to display in the address bar, then it's safe enough to display to the even more tech-savvy HN readership.

(Also your comment seems to misunderstand the analogy between UTF-8 and Punycode. You say "UTF-8 is the encoding, so it makes sense to display it" -- but the point is HN doesn't display it. HN displays Unicode characters, not the underlying UTF-8 bytes. Which is the same way you want to display Unicode characters for a domain name, not the underlying Punycode bytes.)

Re:Why I use Firefox by samatman on Wednesday February 28, 2024 @05:22PM (#39544236)
> your comment seems to misunderstand the analogy

You're mistaking misunderstanding for disagreement.

We understand each other perfectly well, we simply disagree.

Re:Why I use Firefox by walrus01 on Wednesday February 28, 2024 @09:35AM (#39538460)
Or maybe it's good that HN doesn't support punycode so that you can know immediately that you're visiting an IDN domain name, and people don't try to sneak in submissions with IDF homograph similarities to troll or pretend to be a site that they're not.
Re:Why I use Firefox by mariusor on Wednesday February 28, 2024 @10:26AM (#39539141)
I doubt that a malicious punycode host name would pass muster more than a minute under the scrutiny of the HN crowd.
Re:Why I use Firefox by walrus01 on Wednesday February 28, 2024 @10:33AM (#39539244)
Indeed so, but it would be amusing to see someone try. More likely someone would register a $11 throw away .com or .net domain to host a temporary httpd and post as a joke with some hand crafted satire of a new tech product, which has lots of potential.
Re:Why I use Firefox by qwery on Wednesday February 28, 2024 @09:22AM (#39538291)
What does it mean for HN to "support" punycode? That `Apple Vision Pro 2 | xn--80ak6aa92e.com` will appear as `[...] | apple.com`?
Re:Why I use Firefox by sulam on Wednesday February 28, 2024 @09:38AM (#39538511)
Literally what they said. The site for this post doesn’t display properly.
Re:Why I use Firefox by 911e on Wednesday February 28, 2024 @10:49AM (#39539519)
yeah accents on website is not great