unic_idna_punycode

Function encode

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

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.