mercurial/templater.py
changeset 2649 3b53fa20dda8
parent 2559 bf67d0f6531c
child 2875 3d6efcbbd1c9
--- a/mercurial/templater.py	Fri Jul 21 02:31:59 2006 +0200
+++ b/mercurial/templater.py	Fri Jul 21 02:36:17 2006 +0200
@@ -241,6 +241,7 @@
     return text.replace('\n', '<br/>\n')
 
 def obfuscate(text):
+    text = unicode(text, 'utf-8', 'replace')
     return ''.join(['&#%d;' % ord(c) for c in text])
 
 def domain(author):