Punycode and IDN
türkiye.com and xn--trkiye-3ya.com are the same address written two ways.
Either form. A scheme and a path are trimmed off, and both spellings come back.
Result
Good to know
- DNS carries ASCII only, so a domain with Turkish letters in it travels as punycode: an xn-- prefix, the ASCII letters that survived, then the rest packed into what looks like noise.
- A name has exactly one ASCII form. Turkish, German, Russian and Japanese domains all encode here the same way the address bar encodes them, and decode back to the name they came from.
- The platform will not decode it for you: reading the hostname of a punycode URL gives the punycode back, not the name behind it.
- Labels are lowercased with Unicode rules before encoding, exactly as a browser does — and that has a Turkish consequence: İ becomes i plus a combining dot, so TÜRKİYE.com is xn--trkiye-3ya103b.com while türkiye.com is xn--trkiye-3ya.com. They are two different addresses.
37 views