aboutsummaryrefslogtreecommitdiff
path: root/e3372.py
diff options
context:
space:
mode:
Diffstat (limited to 'e3372.py')
-rw-r--r--e3372.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/e3372.py b/e3372.py
index 5e1d7a3..adc07c6 100644
--- a/e3372.py
+++ b/e3372.py
@@ -66,6 +66,7 @@ class WebAPI:
def request(self, endpoint: str, data=None):
url = f'http://{self.ip}/api/{endpoint}'
r = requests.get(url, headers=self.headers) if data is None else requests.post(url, data=data, headers=self.headers)
+ r.encoding = 'utf-8'
soup = BeautifulSoup(r.text, 'lxml-xml')