Punycode by RFC 3492, which writes a Unicode label of a domain name in ASCII, e.g. the xn--fa-hia of xn--fa-hia.de for faß.de.
Like most implementations, it limits its numbers to 31 bits.
Punycode by RFC 3492, which writes a Unicode label of a domain name in ASCII, e.g. the xn--fa-hia of xn--fa-hia.de for faß.de. Like most implementations, it limits its numbers to 31 bits.
(decode s)The Unicode text of the Punycode s, without its xn--, or nil when it
isn't Punycode.
(decode "fa-hia")
;; => "faß"
The Unicode text of the Punycode `s`, without its xn--, or nil when it
isn't Punycode.
(decode "fa-hia")
;; => "faß"(encode s)The Punycode of the Unicode text s, without an xn--, or nil when it's
too long to encode.
(encode "faß")
;; => "fa-hia"
The Punycode of the Unicode text `s`, without an xn--, or nil when it's
too long to encode.
(encode "faß")
;; => "fa-hia"cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |