Reputation: 3725
I am developing Mobile application which uses python in its server side(apache server) , I send some parameters to the server,and am sending these parameter after encoding two times ,(other wise apache gives 400 error due to a '/' in the encoded parameter). I came to this solution after reading the article
And my server in turn sends a request to another server using the same parameter, So i want to decode it in to its previous form.
Is there any way in python to decode the encoded parameters in python?
Or whether I move to the other solutions described in the above article.
Upvotes: 1
Views: 4218
Reputation: 39548
Use unquote()
from urllib.parse (python 3.x) or urllib2 (python 2.x)
Upvotes: 5