Python equivalent to Javascript "escape/unescape"
I was assuming that it would somehow be easy to do the equivalent to Javascript "escape/unescape" functions in a Python script but for some reason I just can't find out how to do it. Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with?
----- Original Message ----- From: "Brian Sullivan" <briansullivan@gmail.com> To: "zope list user" <zope@zope.org> Sent: Thursday, February 23, 2006 10:45 AM Subject: [Zope] Python equivalent to Javascript "escape/unescape"
I was assuming that it would somehow be easy to do the equivalent to Javascript "escape/unescape" functions in a Python script but for some reason I just can't find out how to do it.
Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with?
Try googling: urllib.urlencode It should get you going in the right direction Jonathan
I was assuming that it would somehow be easy to do the equivalent to Javascript "escape/unescape" functions in a Python script but for some reason I just can't find out how to do it.
Maybe I can't see the forest for the trees. Anybody out there have a cluestick to whack me with?
Try googling: urllib.urlencode
It should get you going in the right direction
Hmm-- seems to have the stuff I want but also seems not accessible from a Zope Python script :-(
On 2/23/06, Brian Sullivan <briansullivan@gmail.com> wrote:
I was assuming that it would somehow be easy to do the equivalent to Javascript "escape/unescape" functions in a Python script but for some reason I just can't find out how to do it.
from Products.PythonScripts.standard import url_quote, url_quote_plus That what you need? Cheers, Dan -- Dan Fairs <dan.fairs@gmail.com>
participants (3)
-
Brian Sullivan -
Dan Fairs -
Jonathan