durusmail: quixote-users: Re: Htmltext and latin-1 characters
Htmltext and latin-1 characters
2006-05-10
Re: [Cheetahtemplate-discuss] Htmltext and latin-1 characters
2006-05-10
Re: [Cheetahtemplate-discuss] Htmltext and latin-1 characters
2006-05-11
Re: [Cheetahtemplate-discuss] Htmltext and latin-1 characters
2006-05-10
2006-05-11
2006-05-11
2006-05-11
2006-05-11
2006-05-11
2006-05-13
2006-05-13
2006-05-15
Re: Htmltext and latin-1 characters
2006-06-04
2006-06-06
2006-06-07
2006-06-08
Re: Htmltext and latin-1 characters
2006-06-05
2006-06-05
2006-06-05
Re: Htmltext and latin-1 characters
ak
2006-06-04
On Sun, Jun 04, 2006 at 04:11:48PM +0000, Neil Schemenauer wrote:
> Akihiro KAYAMA  wrote:
> > I'm also using Quixote-2 for my Japanese(UTF-8) application.  Here is
> > a kludge I'm using to set default encoding without modifying global
> > site module:
> >
> >    import sys
> >    reload(sys)
> >    sys.setdefaultencoding("utf-8")
> >
> > It can't be appropriate, but it works perfectly for getting rid of
> > annoying 'ascii' codec error.
>
> No, it's not appropriate.
you can also place a file 'sitecustomize.py' in your PYTHONPATH
environment-variable and make the file contain:

import sys
sys.setdefaultencoding("utf-8")

cheers,
    alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEgwzMbdvaic/8WHIRAiupAKCnyKzmeuvlaZmUL6otwUgY5enyvgCeN1Z7
gfxirDi6kBYIMt3n4xTym6I=
=b5JP
-----END PGP SIGNATURE-----
reply