hgweb presents an interesting problem for charset conversion and localization. We've got data from a couple sources displayed:

Charset-unaware versions of Mercurial have been presenting everything in the default HTML character set (Latin-1) or claiming UTF-8 with the gitweb style. With charset detection, we have a couple possibilities:

The last option is the most straightforward. So hgweb will serve pages in the default system character set, which can be overridden by a line in the CGI script, an environment variable, or a command-line option to hg serve.


CategoryWeb

hgwebencoding (last edited 2009-05-19 19:31:03 by localhost)