Module resolve::idna
[−]
[src]
Implements RFC 3490, Internationalized Domain Names in Applications, encoding for domain name labels containing Unicode.
Structs
Error |
Indicates an error in encoding or decoding Punycode data |
Functions
decode |
Converts a single Punycode-encoded label to a unicode string. |
encode |
Converts a single label of unicode characters to a Punycode-encoded ASCII string. |
host_to_ascii |
Converts a hostname to its ASCII representation. Returns an error if the encoding operation failed. |
host_to_unicode |
Converts a hostname to its Unicode representation. Returns an error if the decoding operation failed. |
starts_with_ascii_lowercase |
Returns whether |
to_ascii |
Converts a label to its ASCII format. If the string is already ASCII,
it will be returned unmodified. If an error is encountered in encoding,
|
to_unicode |
Converts a label to its Unicode format. If the string is not an
internationalized domain name, it will be returned unmodified. If an error
is encountered in decoding, |