the stupid encoding problem to stdout

Nobody nobody at nowhere.com
Thu Jun 9 17:46:34 EDT 2011


On Thu, 09 Jun 2011 22:14:17 +0100, Sérgio Monteiro Basto wrote:

> Exactly the opposite , if python don't know the encoding should not try 
> decode to ASCII.

What should it decode to, then?

You can't write characters to a stream, only bytes.

> I want python don't care about encoding terminal and send characters as they 
> are or for a file . 

You can't write characters to a stream, only bytes.




More information about the Python-list mailing list