pub fn idna_to_unicode(input: &str, adl: &str, h: &str) -> StringExpand description
Encodes input as UTF-8.
§Panics
This function will panic under any of the following conditions:
inputis not well-formed UTF-8.inputPunycode is invalid.AsciiDenyListorHyphensare invalid.- The
AsciiDenyListorHyphensconstraints are violated.
§Defaults
- If unspecified, the default
AsciiDenyListisURL. - If unspecified, the default
HyphensisAllow.
For more information, see Uts46::to_unicode.