@property<EOL><INDENT>def encoding(self) -> _Encoding:<DEDENT>
if self._encoding:<EOL><INDENT>return self._encoding<EOL><DEDENT>if self._html:<EOL><INDENT>self._encoding = html_to_unicode(self.default_encoding, self._html)[<NUM_LIT:0>]<EOL>try:<EOL><INDENT>self.raw_html.decode(self.encoding, errors='<STR_LIT:replace>')<EOL><DEDENT>except UnicodeDecodeError:<EOL><INDENT>self._encoding = self.default_encoding<EOL><DEDENT><DEDENT>return self._encoding if self._encoding else self.default_encoding<EOL>
The encoding string to be used, extracted from the HTML and
        :class:`HTMLResponse <HTMLResponse>` headers.