Glør is a restaurant in Norway, and its name has an ø in it. So the natural domain was glør-restaurant.no, and the address on the website was post@glør-restaurant.no. It looked right. It quietly let guests down.
A domain is not what you see
The internet's naming system only understands English letters, digits and hyphens. Any domain with ø, é or Arabic letters is converted behind the scenes into a form called punycode — glør-restaurant.no is really xn--glr-restaurant-rqb.no. The browser shows you the pretty version and connects to the other one.
Where it broke
Browsers handle that conversion well. Email is another story. Many mail clients do not treat post@glør-restaurant.no as an address at all: the guest clicks the link and nothing happens, or the message is sent and never arrives. The worst outcome is the one nobody reports — the guest decides the restaurant ignores its email.
The same address was in the structured data (JSON-LD) Google reads, and in every mailto link on the site.
The fix
I did not change what the owner types in the admin panel; he sees the address exactly as he wrote it. But every address that leaves the server — for a visitor or for Google — goes through one function that converts the domain to punycode. One function, used by the site and the SEO code alike, so there are never two definitions of the same thing.
A lesson on the side
While testing, I wrote the address into the database from the command line. The ø turned into two odd characters and produced a conversion that looked plausible and was completely wrong. I spent a while suspecting the conversion function, which had been right all along — the problem was the connection's character set. Test non-English text the same way your app writes it, not from a terminal.
In short
- Use the punycode form in config, links and email.
- Show the pretty form to humans only.
- Convert in one place, on the way out of the server.