pub fn decode(data: &str) -> Result<Cow<'_, str>, FromUtf8Error>
Expand description
Decode percent-encoded string assuming UTF-8 encoding.
If you need a String
, call .into_owned()
(not .to_owned()
).
Unencoded +
is preserved literally, and not changed to a space.