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

to_ascii

Converts a label or host to its ASCII format. If the string is already ASCII, it will be returned unmodified. If an error is encountered in encoding, Err will be returned.

to_unicode

Converts a label or host 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, Err will be returned.