# werkzeug.url_quote¶

werkzeug.url_quote(string, charset='utf-8', errors='strict', safe='/:', unsafe='')[source]

URL encode a single string with a given encoding.

Parameters: s – the string to quote. charset – the charset to be used. safe – an optional sequence of safe characters. unsafe – an optional sequence of unsafe characters.

New in version 0.9.2: The unsafe parameter was added.