mercurial/hgweb/hgweb_mod.py
changeset 3781 713e35dcc321
parent 3673 eb0b4a2d70a9
child 3877 abaee83ce0a6
child 3882 9c8488490724
--- a/mercurial/hgweb/hgweb_mod.py	Sun Dec 03 17:28:58 2006 -0600
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Dec 03 18:47:05 2006 -0600
@@ -654,7 +654,8 @@
 
     def run_wsgi(self, req):
         def header(**map):
-            header_file = cStringIO.StringIO(''.join(self.t("header", **map)))
+            header_file = cStringIO.StringIO(
+                ''.join(self.t("header", encoding = util._encoding, **map)))
             msg = mimetools.Message(header_file, 0)
             req.header(msg.items())
             yield header_file.read()