durusmail: quixote-users: Unicode support for Quixote 2
Unicode support for Quixote 2
2004-09-03
2004-09-03
2004-09-03
2004-09-03
Quixote / mod_python - test workflow?
2004-09-04
Re: R: [Quixote-users] Quixote / mod_python - test workflow?
single word attributes in html.htmltag()
2004-09-05
Re: single word attributes in html.htmltag()
2004-09-06
2004-09-04
2004-09-08
Python Best of Breed web app snippets / small webapps
2004-09-08
2004-09-10
2004-09-09
2004-09-09
2004-09-09
2004-09-09
Unicode support for Quixote 2
Marcin Wojdyr
2004-09-03
> 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

reply