def unicode_body(
        self,
    ) -> str:
        """Return response body as unicode string."""
        if not self._unicode_body:
            # TODO: ignore_errors option
            self._unicode_body = unicodec.decode_content(
                self.body, encoding=self.encoding
            )
        return self._unicode_body
Return response body as unicode string.
grab/document.py