Re: url encode

2007-06-05 Thread Yongjian Xu
you can take a look urlib.quote or quote_plus methods. Jim On 6/5/07, Lee Jones <[EMAIL PROTECTED]> wrote: 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 wan

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