Python 2.6.4 (r264:75821M, Oct 27 2009, 19:48:32)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib
>>> s = u'\xe2'
>>> urllib.quote(s)
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py:1223: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
res = map(safe_map.__getitem__, s)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 1223, in quote
res = map(safe_map.__getitem__, s)
KeyError: u'\xe2'