Encode as utf-8

merge-requests/8/head
Bob Mottram 2020-10-10 09:43:24 +01:00
parent 2d004cf9f2
commit 6f12529f45
1 changed files with 2 additions and 2 deletions

View File

@ -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