I am facing a problem with urllib.url_encode in python. Bets explained with some code:
>>> from urllib import urlencode >>> params = {\'p\' :
It is simpler in Python 3:
urllib.parse.urlencode(params, safe='|')