def legacy_url_escape(string): # convert into a list of octets return quote_plus(string)
def url_escape(string): # convert into a list of octets string = string.encode("utf8") return quote_plus(string)