From 1625352228cbc326786a03beae11ee2463011e2c Mon Sep 17 00:00:00 2001 From: boyska Date: Sun, 21 May 2017 00:25:10 +0200 Subject: [PATCH] FIX utf8 su ICS --- plugins/talks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/talks.py b/plugins/talks.py index f358f5c..2026602 100644 --- a/plugins/talks.py +++ b/plugins/talks.py @@ -262,7 +262,7 @@ class TalkGridDirective(Directive): def talks_to_ics(): - content = 'BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:pelican\n' + content = u'BEGIN:VCALENDAR\nVERSION:2.0\nPRODID:pelican\n' for t in all_talks(): content += talk_to_ics(t) content += 'END:VCALENDAR\n' @@ -308,7 +308,7 @@ class TalksGenerator(generators.Generator): shutil.rmtree(outdir) shutil.copytree(self.talks[talkname]['resources'], outdir) with open(os.path.join(self.output_path, TALK_ICS), 'w') as buf: - buf.write(talks_to_ics()) + buf.write(talks_to_ics().encode('utf8')) def add_talks_option_defaults(pelican):