Punycode

A standard way to write domain names that contain non-English characters using only the plain letters, digits and hyphens the domain system accepts.

In more detail

A domain with characters from other scripts is converted to a form that starts with xn-- before it is looked up. Browsers usually show the friendly form, which is how a domain using a Cyrillic letter can pass for a real English one. Converting a suspicious domain to its xn-- form reveals that it is not the name it appears to be.

Examples

wire = domain.encode("idna").decode()
еxample.com -> xn--xample-2of.com

Related terms

Taught in

References