templater.py: fix obfuscate

This commit is contained in:
Alexis S. L. Carvalho 2006-12-16 02:21:46 -02:00
parent 877ef87ad8
commit 2726e242c0

View File

@ -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):