Domain names in Unicode and in ASCII, by Unicode IDNA Compatibility Processing (UTS #46) of Unicode 18.0.0, revision 36.
The options are those of UTS #46, and default-options holds the ones that the URL Standard uses for the domain of a URL. NFC comes from the platform. A domain is an error rather than a guess when it has a new code point that NFC doesn't leave alone and the platform doesn't know.
Domain names in Unicode and in ASCII, by Unicode IDNA Compatibility Processing (UTS #46) of Unicode 18.0.0, revision 36. The options are those of UTS #46, and default-options holds the ones that the URL Standard uses for the domain of a URL. NFC comes from the platform. A domain is an error rather than a guess when it has a new code point that NFC doesn't leave alone and the platform doesn't know.
The options that the URL Standard uses for the domain of a URL, both in ToASCII when it isn't strict and in ToUnicode:
The options that the URL Standard uses for the domain of a URL, both in ToASCII when it isn't strict and in ToUnicode: - :check-hyphens?, true to refuse a hyphen at the start or the end of a label, or in its third and fourth place - :check-bidi?, true to check right-to-left labels by the rules of RFC 5893 - :check-joiners?, true to check U+200C and U+200D by the CONTEXTJ rules of RFC 5892 - :use-std3-ascii-rules?, true to allow only a-z, 0-9 and - of ASCII - :transitional?, true for the deprecated mapping of ß, ς, U+200C and U+200D - :verify-dns-length?, true to check the lengths that DNS allows, with no empty label - :ignore-invalid-punycode?, true to keep a label of xn-- that doesn't decode as it is
(process domain)(process domain opts)The Unicode domain mapped, normalized and converted by the processing
steps of UTS #46 with opts, as a map of the :domain and whether an
:error? was recorded. The opts override default-options.
The Unicode `domain` mapped, normalized and converted by the processing steps of UTS #46 with `opts`, as a map of the :domain and whether an :error? was recorded. The `opts` override default-options.
(to-ascii domain)(to-ascii domain opts)The domain in ASCII by Unicode ToASCII with opts, or nil when an
error was recorded. The opts override default-options.
(to-ascii "Bücher.de")
;; => "xn--bcher-kva.de"
The `domain` in ASCII by Unicode ToASCII with `opts`, or nil when an
error was recorded. The `opts` override default-options.
(to-ascii "Bücher.de")
;; => "xn--bcher-kva.de"(to-unicode domain)(to-unicode domain opts)The domain in Unicode by Unicode ToUnicode with opts, or nil when an
error was recorded. The opts override default-options.
(to-unicode "xn--bcher-kva.de")
;; => "bücher.de"
The `domain` in Unicode by Unicode ToUnicode with `opts`, or nil when an
error was recorded. The `opts` override default-options.
(to-unicode "xn--bcher-kva.de")
;; => "bücher.de"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 |