解码 a Punycode internationalized domain name to Unicode
转换 an ACE-encoded domain (xn--...) back to its readable Unicode form, and encode Unicode domains for DNS lookup.
- 1
DNS 仅 accepts ASCII. Internationalized Domain Names (IDN) 是 encoded as Punycode: Unicode 标签 becomes xn--<ascii>. Decoding restores 原始 Unicode characters 为 display.
- 2 Punycode 解码器 →
Paste ACE 标签 (e.g. xn--mnchen-3ya) 到 get Unicode form (münchen). 为完整域, 解码每个标签 separately.
- 3 Punycode 编码器 →
反转 direction: paste a Unicode domain label to get the xn-- form safe for DNS resolution.
- 4 URL 解析器 →
Paste 完整 URL containing xn-- 主机. parser resolves 主机标签和 lets 你 confirm Punycode ↔ Unicode 映射.
常见问题
- 为什么仅 one 标签在 域启动具有 xn--?
- 每个标签是 encoded independently. 'münchen.de' becomes 'xn--mnchen-3ya.de' — 仅 non-ASCII 标签 gets xn-- prefix; pure-ASCII labels 通过通过 unchanged.
- 能够 I use Unicode form directly 在 browser?
- 现代 browsers display Unicode form 但发送 Punycode form 到 DNS. 一些 contexts (email, certificates) 可以 require Punycode form explicitly 为 compatibility.