werkzeug.url_unquote

werkzeug.url_unquote(string, charset='utf-8', errors='replace', unsafe='')[source]

URL decode a single string with a given encoding. If the charset is set to None no unicode decoding is performed and raw bytes are returned.

Parameters:
  • s – the string to unquote.
  • charset – the charset of the query string. If set to None no unicode decoding will take place.
  • errors – the error handling for the charset decoding.