def unquote_unicode(text, encoding="utf-8"):
"""urllib2.unquote wrapper to handle unicode items."""
if isinstance(text, unicode):
text = text.encode(encoding)
return urllib2.unquote(text).decode(encoding)
文章目录