Unicode conversion in 'print'

Ricardo Bugalho ricardo.b at zmail.pt
Fri Jan 14 03:41:38 CET 2005


Hi, 
 thanks for the information. But what I was really looking for was
informaion on when and why Python started doing it (previously, it always
used sys.getdefaultencoding())) and why it was done only for 'print' when
stdout is a terminal instead of always.

On Thu, 13 Jan 2005 14:33:20 -0800, Serge Orlov wrote:

> Sure. It uses the encoding of you console. Here is explanation why it uses
> locale to get the encoding of console:
> http://www.python.org/moin/PrintFails
> 
-- 
	Ricardo




More information about the Python-list mailing list