Skip to main content

decode

Function decode 

Source
pub fn decode(text: &str) -> String
Expand description

Percent-decoding (RFC 3986 §2.1): the bytes read as UTF-8, a wrong one replaced; “+” stays “+” (a space is “%20” in mailto:, RFC 6068 §5), and a “%” not followed by two hexadecimal digits stays as it is.