function(s) to decode a URL produced by encodeURIComponent injavascript

M

Merrick

I encoded a URL in javascript and would like to decode it in python.
The urllib.unquote does not have an optional safe argument and I
cannot find how to do urldecode.
 
M

Merrick

I encoded a URL in javascript and would like to decode it in python.
The urllib.unquote does not have an optional safe argument and I
cannot find how to do urldecode.

It looks like urllib.unquote_plus does this, sorry for answering my
own question.
 
B

Bruno Desthuilliers

Merrick a écrit :
(answering to itself)
sorry for answering my
own question.

Don't be sorry. You're doing a great service to everyone here by
letting us know the problem is solved (so we don't bother answering),
and to everyone that might have the same problem (and is able to use a
search engine...) by providing the solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top