@property<EOL><INDENT>def text(self):<DEDENT>
<EOL>content = None<EOL>encoding = self.encoding<EOL>if not self.content:<EOL><INDENT>return str('<STR_LIT>')<EOL><DEDENT>if self.encoding is None:<EOL><INDENT>encoding = self.apparent_encoding<EOL><DEDENT>try:<EOL><INDENT>content = str(self.content, encoding, errors='<STR_LIT:replace>')<EOL><DEDENT>except (LookupError, TypeError):<EOL><INDENT>content = str(self.content, errors='<STR_LIT:replace>')<EOL><DEDENT>return content<EOL>
Content of the response, in unicode.

        If Response.encoding is None, encoding will be guessed using
        ``chardet``.

        The encoding of the response content is determined based solely on HTTP
        headers, following RFC 2616 to the letter. If you can take advantage of
        non-HTTP knowledge to make a better guess at the encoding, you should
        set ``r.encoding`` appropriately before accessing this property.