PyDocs

Nav

Internet Protocols and Support

unquote

urllib.parse

function (source)
  • unquote(string, encoding='utf-8', errors='replace')
Replace %xx escapes by their single-character equivalent. The optional
encoding and errors parameters specify how to decode percent-encoded
sequences into Unicode characters, as accepted by the bytes.decode()
method.
By default, percent-encoded sequences are decoded with UTF-8, and invalid
sequences are replaced by a placeholder character.

unquote('abc%20def') -> 'abc def'.
Changed in 3.9
  • 3.9: string parameter supports bytes and str objects (previously only str).
0 Examples
No examples for urllib.parse/unquote.
See Also
No see-alsos for urllib.parse/unquote
0 Notes
No notes for unquote