Function url::punycode::encode [-] [+] [src]

pub fn encode(input: &[char]) -> Option<String>

Convert Unicode to Punycode.

Return None on overflow, which can only happen on inputs that would take more than 63 encoded bytes, the DNS limit on domain name labels.