Re: url encode

2007-06-05 Thread Yongjian Xu
ch is not what I want. I only want to url-encode a string. Does any one know how to do this in python Thanks Lee Lee Jones, Software Developer *SecureTrading Ltd* European Operations Centre Parc Menai Bangor Gwynedd LL57 4BL T: 01248 672 028 F: 01248 672 099 www.securetradin

url encode

2007-06-05 Thread Lee Jones
Hello, I am trying to urlencode a string. In python the only thing I can see is the urllib.urlencode(). But this takes a dictionary, and returns "key=value", which is not what I want. I only want to url-encode a string. Does any one know how to do this in python Thanks Lee

Re: url encode latin-1 characters

2006-07-23 Thread John Machin
Lurker wrote: > I want send latin-1 string to web server by url parameter > > urllib.quote return just symbol code with preceeding percent for every > non-ascii character: > #>ustr = 'Ü' > #>urllib.quote(ustr) > '%9A' > The latin1 encoding for U-with-umlaut is 0xDC. The cp850 encoding for the sam

url encode latin-1 characters

2006-07-23 Thread Lurker
I want send latin-1 string to web server by url parameter urllib.quote return just symbol code with preceeding percent for every non-ascii character: #>ustr = 'Ü' #>urllib.quote(ustr) '%9A' but this seems to be wrong because server response contains my parameter and it differ from original (for e