parameters: (obj, charset='utf-8')
return_statement: return text_type(url_quote(obj))
docstring: URL escapes a single bytestring or unicode string with the
      given charset if applicable to URL safe quoting under all rules
      that need to be considered under all supported Python versions.
  
      If non strings are provided they are converted to their unicode
      representation first.
docstring_summary: URL escapes a single bytestring or unicode string with the
      given charset if applicable to URL safe quoting under all rules
      that need to be considered under all supported Python versions.
docstring_tokens: URL escapes a single bytestring or unicode string with the given charset if applicable to URL safe quoting under all rules that need to be considered under all supported Python versions .
function: def unicode_urlencode(obj, charset='utf-8'):
      """URL escapes a single bytestring or unicode string with the
      given charset if applicable to URL safe quoting under all rules
      that need to be considered under all supported Python versions.
  
      If non strings are provided they are converted to their unicode
      representation first.
      """
      if not isinstance(obj, string_types):
          obj = text_type(obj)
      if isinstance(obj, text_type):
          obj = obj.encode(charset)
      return text_type(url_quote(obj))
function_tokens: def unicode_urlencode ( obj , charset = 'utf-8' ) : if not isinstance ( obj , string_types ) : obj = text_type ( obj ) if isinstance ( obj , text_type ) : obj = obj . encode ( charset ) return text_type ( url_quote ( obj ) )