Python's 8-bit cleanness deprecated?

Jarek Zgoda jzgoda at usun.gazeta.pl
Mon Feb 10 14:34:22 EST 2003


Roman Suzi <rnd at onego.ru> pisze:
 
> And also, for a windows program which encoding do I specify? Windows console
> historically uses cp866 while GUI uses cp1251.

We have cp437 for Windows console as default encoding, while _really_
it's something different... You don't have "ą" character in cp437 set,
but you can do

print "Zażółć gęślą jaźń".encode('cp437')

and it will be shown correctly.

-- 
Jarek Zgoda
http://www.zgoda.biz/
JID:jarek at jabberpl.org




More information about the Python-list mailing list