branch | stable |
changeset 6339 | bdc3dc94d744 |
parent 6325 | 38cfda1ab60f |
child 6582 | 8eb7883b4223 |
--- a/web/views/cwuser.py Fri Sep 24 18:20:45 2010 +0200 +++ b/web/views/cwuser.py Fri Sep 24 18:20:57 2010 +0200 @@ -85,7 +85,8 @@ % xml_escape(entity.firstname)) emailaddr = entity.cw_adapt_to('IEmailable').get_email() if emailaddr: - self.w(u'<foaf:mbox_sha1sum>%s</foaf:mbox_sha1sum>\n' % hashlib.sha1(emailaddr).hexdigest()) + self.w(u'<foaf:mbox_sha1sum>%s</foaf:mbox_sha1sum>\n' + % hashlib.sha1(emailaddr.encode('utf-8')).hexdigest()) self.w(u'</foaf:Person>\n')