From f4cc8137405289ddae166f70dfac66fb0454286c Mon Sep 17 00:00:00 2001 From: Michele Comitini Date: Sat, 22 Sep 2012 23:37:06 +0200 Subject: [PATCH] fixed apos encoding. --- gluon/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/html.py b/gluon/html.py index 0909290c..c5bf255e 100644 --- a/gluon/html.py +++ b/gluon/html.py @@ -34,7 +34,7 @@ join = ''.join # name2codepoint is incomplete respect to xhtml (and xml): 'apos' is missing. entitydefs = dict(map(lambda (k,v): (k, unichr(v).encode('utf-8')), name2codepoint.iteritems())) -entitydefs.setdefault('apos', u"'") +entitydefs.setdefault('apos', u"'".encode('utf-8')) __all__ = [