Setting stdout encoding

Fabio Zadrozny fabiofz at gmail.com
Mon Sep 10 09:02:42 EDT 2007


>
>
> Does someone know if there's a way to explicitly set the stdout/stderr/
> stdin
> encoding that python should use?
>
> The encoding can be set using the C API for file objects - from Python
> code, use ctypes:
>
>
Yeap, but that would leave me with the original problem: I need to run a
script to run the original script I want to run...(and not being compatible
with other python implementations). Isn't there any way to set that
externally (like environment variable, args to the interpreter or anything
else like that)?

Thanks,

Fabio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070910/836e632e/attachment.html>


More information about the Python-list mailing list