From 33ddf9f62ba984b56dd80378cf0041d4e27cc80d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Oct 2020 09:45:47 +0100 Subject: [PATCH] Decode --- newsdaemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newsdaemon.py b/newsdaemon.py index 586956de..4452dc5f 100644 --- a/newsdaemon.py +++ b/newsdaemon.py @@ -90,8 +90,8 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str, newswire[originalDateStr][3] = filename continue - rssTitle = urllib.parse.unquote_plus(item[0]).encode('utf-8') - url = urllib.parse.unquote_plus(item[1]).encode('utf-8') + rssTitle = urllib.parse.unquote_plus(item[0]).decode() + url = urllib.parse.unquote_plus(item[1]).decode() rssDescription = '' # get the rss description if it exists