[issue1183] wrong encoding when using web.encoding setting

azraiyl mercurial-bugs at selenic.com
Tue Jun 17 14:55:15 CDT 2008

New submission from azraiyl <azraiyl at gmail.com>:

Situation: Windows default installation. Default encoding is cp1252. I modify
the web section in Mercurial.ini and add encoding=utf-8. "hg serve" without any
parameter. hg sends to client the encoding is utf-8 as intendet - but - the
content is still encoded in cp1252 and therefore does not make sense.


hgweb_mod.py calls changectx from a context
context.py calls from read from changelog
changelog.py calls tolocal from util
util.py does not care about the web encoding

The cp1252 encoded string therfore goes back up to hgweb_mod.py and is never
modified again.

A simple bugfix would be to remove the web encoding at all. An "--encoding
utf-8" in the defaults section for "hg serve" does work well.

messages: 6308
nosy: azraiyl
priority: bug
status: unread
title: wrong encoding when using web.encoding setting
topic: hgweb

Mercurial issue tracker <mercurial-bugs at selenic.com>

More information about the Mercurial-devel mailing list