From 62c29b8b0e2473afbaef0ee4baca7ca540d08aa9 Mon Sep 17 00:00:00 2001 From: Ejmric Date: Fri, 11 Jan 2019 15:36:01 +0100 Subject: [PATCH] TheGuardian: fixed displaying of Unicode characters --- orangecontrib/text/guardian.py | 1 + 1 file changed, 1 insertion(+) diff --git a/orangecontrib/text/guardian.py b/orangecontrib/text/guardian.py index a062d9f67..cc46e371d 100644 --- a/orangecontrib/text/guardian.py +++ b/orangecontrib/text/guardian.py @@ -97,6 +97,7 @@ def _search(self, query, from_date, to_date, page=1): data = self._build_query(query, from_date, to_date, page) response = requests.get(BASE_URL, data) + response.encoding = "UTF-8" if response.status_code == 429: raise APILimitError("API limit exceeded")