the stupid encoding problem to stdout
Sérgio Monteiro Basto
sergiomb at sapo.pt
Thu Jun 9 21:59:52 EDT 2011
Ben Finney wrote:
>> >> Exactly the opposite , if python don't know the encoding should not
>> >> try decode to ASCII.
>
> Are you advocating that Python should refuse to write characters unless
> the encoding is specified? I could sympathise with that, but currently
> that's not what Python does; instead it defaults to the ASCII codec.
could be a solution ;) or a smarter default based on LANG for example (as
many GNU does).
--
Sérgio M. B.
More information about the Python-list
mailing list