Comment on How to check whether a particular url is safe or not ?

<- View Parent
tyler@programming.dev ⁨3⁩ ⁨days⁩ ago

🌽.ws

Should transform to 🌽.ws when you click it. The xn— is the punycode prefix.

Here’s how Punycode works:

Unicode characters are first converted into a series of code points, which are represented as a series of numbers. The code points are then converted into a series of ASCII characters, using a specific algorithm. The ASCII characters are then prepended with “xn–”, which is a special prefix that indicates that the following characters are encoded in Punycode.

For example, the Unicode character 快 (which means fast in Chinese) is represented as the code point “U+5FEB”. This code point is then converted into the ASCII characters “2s5v”, which is prepended with the “xn–” prefix to give us “xn–2s5v”. This can then be used as part of a domain name.

When the domain name is displayed to a user, the Punycode is converted back into Unicode characters, so that the user sees the original characters rather than the encoded version. This allows users to use and read domain names in their native scripts, even if their computer or device doesn’t support those scripts.

www.link-assistant.com/seo-wiki/punycode/

source
Sort:hotnewtop