From db8c0a3673fe0653eca22d66ef8144342d376e0b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 15 Mar 2021 19:11:31 +0000 Subject: [PATCH] Decode ascii --- notifications_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifications_client.py b/notifications_client.py index 89dc290f8..045542b1f 100644 --- a/notifications_client.py +++ b/notifications_client.py @@ -453,7 +453,7 @@ def _showLocalBox(notifyJson: {}, boxName: str, posStr += ' ' if speakerJson.get('name'): udata = speakerJson['name'] - name = str(udata.encode("ascii", "ignore")) + name = udata.encode("ascii", "ignore").decode() else: name = '' if len(name) > 16: @@ -462,7 +462,7 @@ def _showLocalBox(notifyJson: {}, boxName: str, while len(name) < 16: name += ' ' udata = speakerJson['content'] - content = str(udata.encode("ascii","ignore")) + content = udata.encode("ascii","ignore").decode() if speakerJson.get('detectedLinks'): if len(speakerJson['detectedLinks']) > 0: content = '🔗' + content