[Blends-commit] [SCM] website branch, master, updated. 33c0c442354531f56e4668c8d89f47a04bc295f9
Ole Streicher
olebole at debian.org
Sun Dec 6 14:14:10 UTC 2015
The following commit has been merged in the master branch:
commit 0ea7974c5b86818ba70fb7600bdfdbf378baf456
Author: Ole Streicher <olebole at debian.org>
Date: Sun Dec 6 15:11:19 2015 +0100
Allow utf-8 encoding in tasks.xhtml/packages.xhtml
diff --git a/webtools/tasks.py b/webtools/tasks.py
index 6513fbc..f71216e 100755
--- a/webtools/tasks.py
+++ b/webtools/tasks.py
@@ -3,6 +3,7 @@
import apt
import apt_pkg
import apt_inst
+import codecs
from sys import argv, exit, stderr
import os
@@ -267,7 +268,7 @@ for lang in languages:
else:
template = loader.load('tasks.xhtml')
- f = open(outputfile+'_tmp', "w")
+ f = codecs.open(outputfile+'_tmp', "w", "utf-8")
try:
print >> f, template.generate(**data).render('xhtml')
except UnicodeEncodeError, errtxt:
--
Static and dynamic websites for Debian Pure Blends
More information about the Blends-commit
mailing list