[mod_python] Unicode support?

Jon-Pierre Gentil jgentil at sebistar.net
Thu Jun 24 12:00:06 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ross M Karchner wrote:
> Maybe you need to change Apache's and/or Python's default character sets?
>
> See the "Your Application and Unicode" and "Browser Behavior" sections
> on this page:
> http://dalchemy.com/opensource/unicodedoc/
>
> Perhaps someone who knows more about this kind of stuff can comment on
> that articles applicability to mod_python.

I may try sys.setdefaultencoding("utf-8"), and see if that causes the
str() function to return a unicode string.

> (Jon-Pierre- apologies that you got this twice)

Its quite alright, I wish they'd set the "Reply-To:" header to reply to
the mailing list.  :-/

- --
::  Jon-Pierre Gentil
::  PGP Key ID 0xA21BC30E
::  Jabber: jgentil at jabber.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkDa+oYACgkQOrVFmaIbww4d+QCfUHWg+8UNVu7smh1KAWc8gwGl
RdAAn3RsqoMRxUazH2kRLAL6UXkDWz8X
=ir4i
-----END PGP SIGNATURE-----


More information about the Mod_python mailing list