WTF? Printing unicode strings
John Salerno
johnjsal at NOSPAMgmail.com
Fri May 19 13:44:52 EDT 2006
skip at pobox.com wrote:
> 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
You're right, I'm on XP. I just couldn't make sense of the lookup call,
although some of the names looked like .NET classes.
More information about the Python-list
mailing list