werkzeug.url_unquote_plus

werkzeug.url_unquote_plus(s, charset='utf-8', errors='replace')[source]

URL decode a single string with the given charset and decode “+” to whitespace.

Per default encoding errors are ignored. If you want a different behavior you can set errors to 'replace' or 'strict'. In strict mode a HTTPUnicodeError is raised.

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.