mirror of
https://github.com/sjlongland/tornado-news.git
synced 2025-09-13 10:03:14 +10:00
Write RSS code as UTF-8
This commit is contained in:
parent
08221046a5
commit
b24ee0bccc
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user