6
我需要url编码外部名称,如“Misère”。如何正确的URL编码口音?
当我这样做:
urllib2.quote(name)
我得到一个错误:
File "/System/Library/Frameworks/Python.framework/Versions/
2.5/lib/python2.5/urllib.py", line 1205, in quote
res = map(safe_map.__getitem__, s)
KeyError: u'\xe8'
我在做什么错?
工作,谢谢! – 2011-02-07 17:52:01