[Blends-commit] [SCM] website branch, master, updated. c437840db552644ae90cbfe15e9e7ee987b9803e
Ole Streicher
olebole at debian.org
Fri Feb 19 18:59:35 UTC 2016
The following commit has been merged in the master branch:
commit c437840db552644ae90cbfe15e9e7ee987b9803e
Author: Ole Streicher <olebole at debian.org>
Date: Fri Feb 19 19:59:30 2016 +0100
Enable unicode for debian-astro_idx
diff --git a/webtools/tasks.py b/webtools/tasks.py
index 58e479f..d312366 100755
--- a/webtools/tasks.py
+++ b/webtools/tasks.py
@@ -203,7 +203,7 @@ for lang in languages:
os.unlink(outputfile)
except: # simply continue if file does not exist
pass
- f = open(outputfile, 'w')
+ f = codecs.open(outputfile, "w", "utf-8")
try:
print >> f, template.generate(**data).render('xhtml')
except UnicodeDecodeError, errtxt:
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list