• tyler@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        3 days ago

        🌽.ws

        Should transform to https://🌽.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.

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

        • joshchandra@midwest.social
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          3 days ago

          Huh. Well, I was watching the URL bar the entire time and it only moved directly from the emoji to the X tweet; I never saw your decoded URL, unless it simply happens that fast, or I’m misunderstanding your last paragraph and that’s what was supposed to happen.

          Also, that’s one heck of a short link, haha.

          • tyler@programming.dev
            link
            fedilink
            arrow-up
            1
            ·
            2 days ago

            Might be because it’s a redirect… or maybe Firefox shows emojis directly but not other punycode?