2.4.4 (#1, Oct 18 2006, 10:34:39)>>print sys.version
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]
Traceback (most recent call last):>>urllib.quote(u"\xe9")
File "<stdin>", line 1, in ?
File
"/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/urllib.py",
line 1117, in quote
res = map(safe_map.__getitem__, s)
KeyError: u'\xe9'
but it seems to work in Python 2.3.5
Python 2.3.5 (#1, Aug 19 2006, 21:31:42)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
2.3.5 (#1, Aug 19 2006, 21:31:42)>>import sys, urllib
print sys.version
[GCC 4.0.1 (Apple Computer, Inc. build 5363)]
'%E9'>>urllib.quote(u'\xe9')
Is this a known bug?
What's the workaround?
Thanks,
nyenyec