werkzeug.url_quote_plus

werkzeug.url_quote_plus(string, charset='utf-8', errors='strict', safe='')[source]

URL encode a single string with the given encoding and convert whitespace to “+”.

Parameters:
  • s – The string to quote.
  • charset – The charset to be used.
  • safe – An optional sequence of safe characters.