So this is all well and good, BUT: people have their Punycode converters online which for example encodes "!" to "xn--!". An exclamation mark is an ASCII character, so it doesn't get encoded. AN exclamation mark ISN'T a valid character in a domain name so the LDH prefix there doubly makes no sense. Either create a Punycode encoding tool or an IDN encoding tool but not whatever this is.
Conversation
Notices
-
Embed this notice
famfo (famfo@chaos.social)'s status on Tuesday, 01-Oct-2024 07:45:49 JST famfo - Haelwenn /элвэн/ :triskell: likes this.
-
Embed this notice
famfo (famfo@chaos.social)'s status on Tuesday, 01-Oct-2024 07:45:50 JST famfo I tried to search for "Punycode" and god it's a rabbit hole especially because people didn't read the standards:
- Punycode actually describes an algorithms known as "Bootsring" to encode Unicode characters into ASCII [RFC3492]
- The "XN--" (not case sensitive) people put in front of their Punycode strings is only a LDH label (let-dig-hyp, letter, digit, hyphen, describing the valid characters in a domain name) [RFC5891] to indicate the everything after is a Punycode encoded string