Displaying Unicode on the console (Windows)

Anton Muhin antonmuhin at sendmail.ru
Mon Apr 14 12:16:35 EDT 2003


Paul Moore wrote:
>>>>print u'\u20a0'.encode("cp1258")
> [BTW, in case it's relevant - I know it probably is - the output from
> "chcp" at the console prompt is "Active code page: 1252"]
Did you try:
	print u'\u20a0'.encode("cp1252") # Note 1252, not 1258
?

hth, anton.





More information about the Python-list mailing list