urllib.parse.quote_from_bytes(bytes, safe='/')
Like quote(), but accepts a bytes object rather than a str, and does not perform string-to-bytes encoding.
quote()
bytes
str
Example: quote_from_bytes(b'a&\xef') yields 'a%26%EF'.
quote_from_bytes(b'a&\xef')
'a%26%EF'
Please login to continue.
Please login to continue.