urllib.parse.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.
string must be a str
.
encoding defaults to 'utf-8'
. errors defaults to 'replace'
, meaning invalid sequences are replaced by a placeholder character.
Example: unquote('/El%20Ni%C3%B1o/')
yields '/El Niño/'
.
Please login to continue.