Python

From Joseph Luis Wiki
Jump to: navigation, search

Back to the TOC

How to percent-encode url parameters in python

python -c "import urllib, sys; print urllib.quote(sys.argv[1])" æ

python -c "import urllib, sys; print urllib.unquote(sys.argv[1])" %C3%A6

Stefano Palazzo