parameters: (self, default='UTF-8')
return_statement: return default
docstring: Return the charset specified in the content-type header (default: utf8).
docstring_summary: Return the charset specified in the content-type header (default: utf8).
docstring_tokens: Return the charset specified in the content - type header ( default : utf8 ) .
function: def charset(self, default='UTF-8'):
          """ Return the charset specified in the content-type header (default: utf8). """
          if 'charset=' in self.content_type:
              return self.content_type.split('charset=')[-1].split(';')[0].strip()
          return default
function_tokens: def charset ( self , default = 'UTF-8' ) : if 'charset=' in self . content_type : return self . content_type . split ( 'charset=' ) [ - 1 ] . split ( ';' ) [ 0 ] . strip ( ) return default