WTF? Printing unicode strings

skip at pobox.com skip at pobox.com
Fri May 19 19:41:26 CEST 2006


    John> Hmm, not that this helps me any :)

    >>>> import sys
    >>>> sys.stdout.encoding
    John> 'cp1252'

Sure it does.  You can print Unicode objects which map to cp1252.  I assume
that means you're on Windows or that for some perverse reason you have your
Mac's Terminal window set to cp1252.  (Does it go there?  I'm at work right
now so I can't check).

Skip



More information about the Python-list mailing list