diff -r f9136599700f -r 1063a631cb8e mercurial/templater.py --- a/mercurial/templater.py Fri Dec 15 20:16:20 2006 -0800 +++ b/mercurial/templater.py Sat Dec 16 02:51:16 2006 -0200 @@ -203,7 +203,7 @@ return text.replace('\n', '
\n') def obfuscate(text): - text = unicode(text, 'utf-8', 'replace') + text = unicode(text, util._encoding, 'replace') return ''.join(['&#%d;' % ord(c) for c in text]) def domain(author):