Skip to main content
DevTools24

Punycode कन्वर्टर

Punycode कन्वर्ट करें।

Unicode to Punycode (ASCII)

Punycode to Unicode

About Punycode

  • • Punycode converts Unicode domain names to ASCII for DNS compatibility
  • • Internationalized Domain Names (IDN) use the xn-- prefix
  • • Example: münchen.de → xn--mnchen-3ya.de
  • • Defined in RFC 3492 and used by all modern browsers

Punycode & IDN - तकनीकी विवरण

Punycode is a way to represent Unicode characters in ASCII for domain names (Internationalized Domain Names or IDN). The xn-- prefix indicates a Punycode-encoded domain. Example: münchen.de becomes xn--mnchen-3ya.de

कमांड-लाइन विकल्प

# Convert with Python
python3 -c "print('münchen.de'.encode('idna').decode())"

# Decode punycode
python3 -c "print(b'xn--mnchen-3ya.de'.decode('idna'))"

संदर्भ

आधिकारिक स्पेसिफिकेशन देखें