Returns a string with percent-encoded reserved characters, including spaces.
The reserved characters in the original string are replaced with their
percent-escaped representation (%xx
). Letters, digits, and the characters
.-_
are not escaped.
Arguments
Arguments | |
---|---|
source |
The string that will be converted.
|
Returns
A percent-encoded copy of the source
string.
Raised exceptions
Exceptions | |
---|---|
TypeError |
If source is not a string. |