url encode latin-1 characters

Lurker aaa.Lurker at gmail.com
Sun Jul 23 19:08:04 EDT 2006


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 example 'Ü' became '[')




More information about the Python-list mailing list