diff -r a454eeb1b827 -r de377b1a9a84 mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py Fri Apr 03 13:20:52 2009 -0500 +++ b/mercurial/hgweb/hgweb_mod.py Fri Apr 03 14:51:48 2009 -0500 @@ -7,7 +7,7 @@ # of the GNU General Public License, incorporated herein by reference. import os -from mercurial import ui, hg, util, hook, error +from mercurial import ui, hg, util, hook, error, encoding from mercurial import templater, templatefilters from common import get_mtime, style_map, ErrorResponse from common import HTTP_OK, HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVER_ERROR @@ -65,7 +65,7 @@ self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) self.maxfiles = int(self.config("web", "maxfiles", 10)) self.allowpull = self.configbool("web", "allowpull", True) - self.encoding = self.config("web", "encoding", util._encoding) + self.encoding = self.config("web", "encoding", encoding.encoding) def run(self): if not os.environ.get('GATEWAY_INTERFACE', '').startswith("CGI/1."):