Equivalent Javascript Functions for Python's urllib.quote() and urllib.unquote()

Posted by Cameron on Stack Overflow See other posts from Stack Overflow or by Cameron
Published on 2009-06-03T17:51:28Z Indexed on 2010/06/01 3:53 UTC
Read the original article Hit count: 471

Filed under:
|
|
|

Hello,

Are there any equivalent Javascript functions for Python's urllib.quote() and urllib.unquote()?

The closest I've come across are escape(), encodeURI(), and encodeURIComponent() (and their corresponding un-encoding functions), but they don't encode/decode the same set of special characters as far as I can tell.

Thanks,
Cameron

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about python