diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2022-10-21 10:14:01 (GMT) |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2022-10-21 10:14:01 (GMT) |
commit | e48844b495219c164100569adf9181abb64d695c (patch) | |
tree | 2759609b4e49570ad1fab24c17dd10c61c751def /web | |
parent | cce41bf7553bb7fea17779e7c9cc570c8d30ec46 (diff) | |
download | site-e48844b495219c164100569adf9181abb64d695c.tar.gz |
macros.py: Address encoding issue
Diffstat (limited to 'web')
-rw-r--r-- | web/macros.py | 2 |
1 files changed, 1 insertions, 1 deletions
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(): | |||
69 | date = email.utils.formatdate() | 69 | date = email.utils.formatdate() |
70 | rss = _RSS % (title, link, desc, date, date, items) | 70 | rss = _RSS % (title, link, desc, date, date, items) |
71 | fp = open(os.path.join(output, 'rss.xml'), 'w') | 71 | fp = open(os.path.join(output, 'rss.xml'), 'w') |
72 | fp.write(rss) | 72 | fp.write(rss.encode('utf-8')) |
73 | fp.close() | 73 | fp.close() |
74 | 74 | ||
75 | # | 75 | # |