changeset 3301:885b7ada47b9

read interwiki files with the right codec (utf-8)
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 18 Mar 2008 18:08:56 +0100
parents f048c3edc164
children 7f44c25af462
files MoinMoin/wikiutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Tue Mar 18 16:51:57 2008 +0100
+++ b/MoinMoin/wikiutil.py	Tue Mar 18 18:08:56 2008 +0100
@@ -552,7 +552,7 @@
         lines = []
 
         for filename in request.cfg.shared_intermap_files:
-            f = open(filename, "r")
+            f = codecs.open(filename, "r", config.charset)
             lines.extend(f.readlines())
             f.close()