Tag names should not be unicode.
On Jan 16, 3:22 am, carlo <syseng...@gmail.com> wrote: > >>> r=TAG['pippo'](u'plutò') > >>> str(r) > > '<pippo>plut\xc3\xb2</pippo>'>>> r=TAG[u'pippo'](u'plutò') > >>> str(r) > > Traceback (most recent call last): > File "<console>", line 1, in <module> > File "C:\Python26\web2py\gluon\html.py", line 797, in __str__ > return self.xml() > File "C:\Python26\web2py\gluon\html.py", line 790, in xml > return '<%s%s>%s</%s>' % (self.tag, fa, co, self.tag) > UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position > 4: ordinal > not in range(128)