code: def response_hook(response, **kwargs) -> XMLResponse:
          
          response.encoding = DEFAULT_ENCODING
          return XMLResponse._from_response(response)
docs: Change response enconding and replace it by a HTMLResponse.