SyntaxFix
Write A Post
Hire A Developer
Questions
Try this:
urllib.pathname2url(stringToURLEncode)
urlencode won't work because it only works on dictionaries. quote_plus didn't produce the correct output.
urlencode
quote_plus