From 6f12529f4521cabee89041ac8b5b5a69bae176bc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Oct 2020 09:43:24 +0100 Subject: [PATCH] Encode as utf-8 --- newsdaemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newsdaemon.py b/newsdaemon.py index 7404ec521..586956de3 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]) - url = urllib.parse.unquote_plus(item[1]) + rssTitle = urllib.parse.unquote_plus(item[0]).encode('utf-8') + url = urllib.parse.unquote_plus(item[1]).encode('utf-8') rssDescription = '' # get the rss description if it exists