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
Neil Schemenauer
2004-09-03
On Fri, Sep 03, 2004 at 07:18:51PM +0200, Marcin Wojdyr wrote:
> Thanks for your reply, but I think I need more hints.
> In demo/pages.ptl I added, at the beginning of _q_index following lines:
>     request.response.set_charset(str('UTF-8'))
>     unichr(0xf3)

That should work.

>     unichr(0xf3)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in
> position 0: ordinal not in range(128)

You are not using the _c_htmltext extension, are you?  That has not
been converted to use unicode yet.

  Neil

reply