xml style doesn't generate valid xml

Paul Boddie paul.boddie at biotek.uio.no
Tue Nov 23 11:15:28 CST 2010


Haszlakiewicz, Eric wrote:
> Oh, commit messages have to be in UTF-8?  I didn't realize that.

What impact does this have on hgweb? I see that there's an {encoding} 
variable which presumably gets set to the "natural" encoding of the 
repository, but this would mean that commit messages have to be 
transcoded to that encoding which might not be possible in some cases, 
although it's fairly likely that if one is working with that encoding, 
one has probably written commit messages in that encoding, and so the 
messages will be representable in that encoding. (One should never 
underestimate the power of tools like text editors to do the wrong thing 
at a specific moment, however.)

With all that said, if a repository originates in a non-Unicode 
environment, restricting the Web interface to that specific 
environment's encoding is a bit unfortunate if one wants to use things 
like symbols, non-ASCII characters and so on in the templates.

Paul


More information about the Mercurial mailing list