[Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

Lennart Regebro regebro at gmail.com
Tue May 20 12:20:06 CEST 2008


On Tue, May 20, 2008 at 12:16 PM, Thomas Wouters <thomas at python.org> wrote:
> You're forgetting about print; in Python 2.x, when stdout is connected to a
> terminal, the locale settings (typically the LANG, LC_ALL and LC_CTYPE
> environment variables) are taken into account when 'print' writes to
> sys.stdout.

Isn't it then enough to make sure your locale setting are correct?
(Never had any problems myself, if works great in Ubuntu).

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Python-Dev mailing list