mercurial/hgweb/hgwebdir_mod.py
changeset 3882 9c8488490724
parent 3557 f7dee427cd14
child 3887 57b797601b61
child 4079 40c9710e8182
--- a/mercurial/hgweb/hgwebdir_mod.py	Tue Dec 12 15:34:11 2006 -0600
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Dec 14 16:07:29 2006 +0100
@@ -61,7 +61,8 @@
 
     def run_wsgi(self, req):
         def header(**map):
-            header_file = cStringIO.StringIO(''.join(tmpl("header", **map)))
+            header_file = cStringIO.StringIO(
+                ''.join(tmpl("header", encoding=util._encoding, **map)))
             msg = mimetools.Message(header_file, 0)
             req.header(msg.items())
             yield header_file.read()