aboutsummaryrefslogtreecommitdiffstats
path: root/generate_html_cs.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate_html_cs.py')
-rwxr-xr-xgenerate_html_cs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/generate_html_cs.py b/generate_html_cs.py
index 93a7d7c..52e2057 100755
--- a/generate_html_cs.py
+++ b/generate_html_cs.py
@@ -1,4 +1,6 @@
-#!/usr/bin/python3
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+from __future__ import absolute_import, print_function, unicode_literals
import re
import codecs
import lxml.etree as et
@@ -215,7 +217,7 @@ def parse_file(filename):
article_keys = sorted(article_dict.keys())
for key in article_keys:
article_list.append(article_dict[key])
- return template.render(articles=article_list)
+ return template.render(articles=article_list).encode('utf8')
if __name__ == "__main__":