idna::punycode

Function decode_to_string

source
pub fn decode_to_string(input: &str) -> Option<String>
Expand description

Convert Punycode to an Unicode String.

Return None on malformed input or overflow. Overflow can only happen on inputs that take more than 63 encoded bytes, the DNS limit on domain name labels.