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
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