decode

Function decode 

Source
pub fn decode(input: &str) -> CDnsResult<String>
Expand description

Decode the string as Punycode. The string should not contain the initial xn-- and must contain only ASCII characters.

§Example

assert_eq!(
    punycode::decode("acadmie-franaise-npb1a").unwrap(),
    "académie-française"
);