Luiz Fernando Bernardes Ribeiro wrote at 2006-8-14 11:03 -0300: >Due to project demands I had to convert the html entities in all TEXT fields >in my database to the real international characters like "á", "ç" and so on.
Good! >The problem is that all my dynamic generated XML started to fail with >UnicodeDecodeError. The XML encoding is set to utf-8 and the file itself is >correctly encoded. > >If I inject the international characters using a Python Script with >something like u'çáé' it works, but passing the TEXT field from the database >generates the error. Then, this means that the value from the database is not unicode. Convert it to unicode by "value.decode(the_database_encoding)". -- Dieter _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )