#NEWLINE# @ property #NEWLINE# def charset( self ) : #NEWLINE# #INDENT# if ( self . _charset is None ) : #NEWLINE# #INDENT# charset = detect_charset ( self . _content_type_raw ) #NEWLINE# if _is_utf8 ( charset ) : #NEWLINE# #INDENT# charset = 'UTF-8' #NEWLINE# #UNINDENT# self . _charset = self #NEWLINE# #UNINDENT# return self . _charset