[Tutor] Conflict with encoding in console view and file dump

Alex Baraibar alex.baraibar at gmail.com
Tue Aug 3 14:22:32 CEST 2010

Hi, Peter.
Sorry for the delay, I've been out for a while.
So I did what you suggested and it prints the following:

import sys
print >> sys.stderr, sys.stdout.encoding

what does the above print
(a) when you print to the console? it prints cp850
(b) when you redirect to a file? it prints None

Any suggestions?
Thanx for your time.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100803/bc5e799c/attachment.html>

More information about the Tutor mailing list