[capi-sig] set default encoding in C program

Campbell Barton ideasman42 at gmail.com
Fri Jun 4 08:53:22 CEST 2010


Could you set the environment variable in C before initializing python?
http://docs.python.org/py3k/using/cmdline.html#envvar-PYTHONIOENCODING

On Fri, Jun 4, 2010 at 3:15 AM, Shaun Savage <savages at mozapps.org> wrote:
> I have to have Unicode strings in my program. Trying to set the default
> encoding to utf-8 is a pain. (another *RANT*).
>
> the way i was thinking about doing it is create a sitecustomization.py  in
> the directory that the executable is in.  That does not work. I can not
> change site.py or sitecustomization.py.
>
> How do you set the default encoding to 'utf-8'?
>
> shaun
>
> _______________________________________________
> capi-sig mailing list
> capi-sig at python.org
> http://mail.python.org/mailman/listinfo/capi-sig
>
>



-- 
- Campbell


More information about the capi-sig mailing list