diff MoinMoin/wikiutil.py @ 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 d0ffd7c45145
children 5f660b3c1cd7
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()