Punycode and internationalized domains
Domain names can contain non-Latin letters, but DNS itself works with ASCII. Punycode bridges the two by converting a Unicode name into an ASCII form that begins with xn--. The same mechanism lets someone register a name that looks like a familiar one and is made of different characters.
How a name becomes xn--
Each part of the name between dots is converted separately, and only if it contains non-ASCII characters. For example, bücher.example becomes xn--bcher-kva.example. The Unicode name and its ASCII xn-- representation refer to the same IDN mapping, so they are one domain written two ways. DNS queries and certificates use the ASCII form.
Why two names can look identical
Visually similar characters can come from different scripts. A Latin letter and its Cyrillic or Greek look-alike may be drawn identically in your font, yet they are different characters and therefore different domains. A browser may display such a name in Unicode or in its xn-- form, depending on its own rules.
How to check a domain that looks unusual
Inspect the actual hostname and certificate; do not trust appearance alone. Paste the name into the 2ip Punycode converter: if a name that seemed plain Latin turns into an xn-- string, it contains other characters.
Do not call a site safe based on a single indicator. A valid certificate confirms that you are connected to exactly the name in the address bar. It cannot tell you whether that name is the one you meant to visit.