'Content of the response, in unicode.
if Response.encoding is None and chardet module is available, encoding
will be guessed.'

@property
def text(self):

    content = None
    encoding = self.encoding
    if (not self.content):
        return str('')
    if (self.encoding is None):
        if (chardet is not None):
            encoding = chardet.detect(self.content)['encoding']
    try:
        content = str(self.content, encoding, errors='replace')
    except (LookupError, TypeError):
        content = str(self.content, errors='replace')
    return content
