Skip to contents

Host Normalization

Entry point for UTS#46 IDNA host normalization — maps a hostname to a canonical lowercase ASCII comparison form. Companions report the profile identity behind that mapping and the set of Unicode versions the build ships, any of which a caller can select per call.

host_normalize()
Normalize hosts to canonical comparison form
normalization_profile_info()
Canonical-host normalization profile identity
unicode_versions()
Unicode table sets available in this build

Punycode Codec

Low-level RFC 3492 encoder/decoder for individual domain labels (xn-- ASCII-Compatible Encoding).

puny_encode()
Encode Unicode domain labels to ASCII Punycode (low-level)
puny_decode()
Decode ASCII Punycode to Unicode domain labels (low-level)

Validators

Predicates for classifying domain names and labels.

validate_domain()
Comprehensive domain name validation
is_idn()
Test if domain contains internationalized characters
is_punycode()
Test if string is punycode encoded

Internals

S3 print and summary methods, and package overview.

punycoder punycoder-package
Unicode and Punycode Domain Name Processing
print(<punycoder_validation>)
Print method for punycoder validation results
print(<punycoder_validation_summary>)
Print method for punycoder validation summaries
summary(<punycoder_validation>)
Summarize punycoder validation results