Function punycode::decode [] [src]

pub fn decode(input: &str) -> Result<String()>

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"
);