unicode

"Martin v. Löwis" martin at v.loewis.de
Mon Jul 2 01:22:44 EDT 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