Unicode question : turn "José" into u"José"

Kent Johnson kent at kentsjohnson.com
Wed Apr 5 17:37:00 EDT 2006


ianaré wrote:
> maybe a bit off topic, but how does one find the console's encoding
> from within python?
> 
In [1]: import sys

In [3]: sys.stdout.encoding
Out[3]: 'cp437'

In [4]: sys.stdin.encoding
Out[4]: 'cp437'

Kent



More information about the Python-list mailing list