(self)
return 'UTF-8'
Return the charset specified in the content-type header (default: utf8).
Return the charset specified in the content-type header (default: utf8).
Return the charset specified in the content - type header ( default : utf8 ) .
def charset(self):
        """ 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 'UTF-8'
def charset ( self ) : if 'charset=' in self . content_type : return self . content_type . split ( 'charset=' ) [ - 1 ] . split ( ';' ) [ 0 ] . strip ( ) return 'UTF-8'