# HG changeset patch # User Alexis S. L. Carvalho # Date 2006-12-16 04:21:46 # Node ID 0dd07dd63db3bd48c4c4989eac150c9a9a28058b # Parent 733d56b8830f98d06bcdcb8154cd70e14378a368 templater.py: fix obfuscate diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -204,7 +204,7 @@ def nl2br(text): 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):