unicode

"Martin v. Löwis" martin at v.loewis.de
Mon Jul 2 07:22:44 CEST 2007


> ooops.  I mean is that the same as print calling
> u_str.encode(sys.stdout.encoding)?

Almost. It's rather

u_str.encode(sys.stdout.encoding or sys.getdefaultencoding())

(in case sys.stdout.encoding isn't set)

Regards,
Martin



More information about the Python-list mailing list