mercurial/templater.py
changeset 3906 1063a631cb8e
parent 3893 6b4127c7d52a
parent 3904 0dd07dd63db3
child 4336 35ad84669ca5
--- a/mercurial/templater.py
+++ b/mercurial/templater.py
@@ -203,7 +203,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):