From e48844b495219c164100569adf9181abb64d695c Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 21 Oct 2022 12:14:01 +0200 Subject: macros.py: Address encoding issue diff --git a/web/macros.py b/web/macros.py index 2ec89da..668c45e 100644 --- a/web/macros.py +++ b/web/macros.py @@ -69,7 +69,7 @@ def hook_postconvert_rss(): date = email.utils.formatdate() rss = _RSS % (title, link, desc, date, date, items) fp = open(os.path.join(output, 'rss.xml'), 'w') - fp.write(rss) + fp.write(rss.encode('utf-8')) fp.close() # -- cgit v0.10-9-g596f