> I changed > self.body = unicode(body).encode(self.charset) > to: > self.body = str(body).decode("UTF-8").encode(self.charset) > and it works as expected. > I have self.charset=="ISO-8859-2". Hmm, no, I was wrong, it doesn't work. It was working when all strings where from .ptl's. Htmltext in ptl, although file is encoded in ISO, is somehow converted to UTF-8. But I have also data in MySQL in ISO and strings from .py files, also in ISO-8859-2 encoding, and these remain in ISO. Does anyone know, how to output everything in single encoding? Marcin -- Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr