From 368d7618e1d8cabcb54b368eb2ec390f266e9208 Mon Sep 17 00:00:00 2001 From: thehighestmath <42893255+thehighestmath@users.noreply.github.com> Date: Wed, 6 Jan 2021 18:10:29 +0300 Subject: [PATCH] Update request.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Исправление неправильных символов при русских названиях рассылок и тд --- senlerpy/request.py | 1 + 1 file changed, 1 insertion(+) diff --git a/senlerpy/request.py b/senlerpy/request.py index bb48d11..daaaab5 100644 --- a/senlerpy/request.py +++ b/senlerpy/request.py @@ -30,6 +30,7 @@ def send(self, method_name, data): url = self.__base_url + str(method_name) try: result = self.__session.post(url, data, timeout=300) + result.encoding = 'utf8' except (ConnectionError, TimeoutError, requests.exceptions.ReadTimeout): raise HttpError('Error with connection to senler.ru API server') if result.status_code == 404: