1
0
mirror of https://github.com/sjlongland/tornado-news.git synced 2025-09-14 02:23:16 +10:00

Write RSS code as UTF-8

This commit is contained in:
Stuart Longland 2019-06-02 08:08:11 +10:00
parent 08221046a5
commit b24ee0bccc
Signed by: stuartl
GPG Key ID: 6AA32EFB18079BAA

View File

@ -440,7 +440,7 @@ def run(cfg):
open(output['html'],'wb').write(html)
if output.get('rss'):
rss = emitter.make_rss(**meta)
open(output['rss'],'w').write(rss)
open(output['rss'],'wb').write(rss.encode('UTF-8'))
finally:
IOLoop.current().stop()