Function: text.url_decode

Returns a string with pluses and percent-escaped characters converted to UTF-8.

Percent-escaped characters (%xx) are replaced with their reserved character equivalents. Plus signs (+) are replaced with spaces. Percent-encoded sequences are converted into UTF-8.

Arguments

Arguments
source

string

The string that will be converted.

Returns

An unescaped copy of the source string with pluses converted to spaces.

Raised exceptions

Exceptions
TypeError If source is not a string.
ValueError If source contains any % not followed by two hexadecimal characters.