Found this interesting… Ever wondered why a domain like xn–bcher-caf-j4a4r looks how it looks and how that notation allows representing unicode characters?

  • Kairos@lemmy.today
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    1
    ·
    4 days ago

    What makes it particularly elegant is that it does this without any shared state between encoder and decoder. The adaptation is purely a deterministic function of the encoded data itself

    Also known as the only way such a thing can work…

  • Kairos@lemmy.today
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    4 days ago

    This article does a very bad job of explaining the algorithm. It’s both overly complicated and not sufficient. It doesn’t explain how the index and codepoint turn into the string, it just gives an example.