the stupid encoding problem to stdout

Terry Reedy tjreedy at udel.edu
Thu Jun 9 20:14:26 EDT 2011


On 6/9/2011 5:46 PM, Nobody wrote:
> 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.

Characters, representations are for people, byte representations are for 
computers.

-- 
Terry Jan Reedy





More information about the Python-list mailing list