urllib.quote and unicode
Kelly
kkranabetter at yahoo.com
Thu Dec 5 20:07:32 EST 2002
More information about the Python-list mailing list
Thu Dec 5 20:07:32 EST 2002
- Previous message (by thread): urllib.quote and unicode
- Next message (by thread): urllib.quote and unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Urllib's quoting of Unicode characters doesn't seem to work right in Python
2.2.1:
>>> urllib.quote(unichr(8225)) # double dagger
'%2021'
>>> urllib.unquote("%2021")
' 21'
I couldn't find anything very useful on the web about quoting Unicode but
Microsoft IIS does understand Unicode characters when quoted like:
"%u2021".
Kelly
- Previous message (by thread): urllib.quote and unicode
- Next message (by thread): urllib.quote and unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list