pub fn utf8_percent_encode<'a>(
    input: &'a str,
    ascii_set: &'static AsciiSet
) -> PercentEncode<'a>Notable traits for PercentEncode<'a>impl<'a> Iterator for PercentEncode<'a> type Item = &'a str;
Expand description

Percent-encode the UTF-8 encoding of the given string.

See percent_encode regarding the return type.

Examples

use percent_encoding::{utf8_percent_encode, NON_ALPHANUMERIC};

assert_eq!(utf8_percent_encode("foo bar?", NON_ALPHANUMERIC).to_string(), "foo%20bar%3F");