def url_unquote_plus(s, charset='utf-8', errors='replace'):
 if isinstance(s, unicode):
  s = s.encode(charset)
 return _decode_unicode(_unquote_plus(s), charset, errors)

def url_unquote_plus ( s , charset = 'utf-8' , errors = 'replace' ) : if isinstance ( s , unicode ) : s = s . encode ( charset ) return _decode_unicode ( _unquote_plus ( s ) , charset , errors )
url decode a single string with the given decoding and decode a "+" to whitespace .