changeset 3904 | 0dd07dd63db3 |
parent 3654 | 734e337cb816 |
child 3906 | 1063a631cb8e |
child 4335 | 66a3fe30f9fc |
--- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -204,7 +204,7 @@ def nl2br(text): return text.replace('\n', '<br/>\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):