unable to print Unicode characters in Python 3

Thorsten Kampe thorsten at thorstenkampe.de
Tue Jan 27 19:00:09 CET 2009

* Giampaolo Rodola' (Tue, 27 Jan 2009 04:52:16 -0800 (PST))
> I have this same issue on Windows.
> Note that on Python 2.6 it works:
> Python 2.6.1 (r261:67517, Dec  4 2008, 16:51:00) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> print unicode('\u20ac')
> \u20ac
> This is pretty serious, IMHO, since breaks any Windows software
> priting unicode to stdout.
> I've filed an issue on the Python bug tracker:
> http://bugs.python.org/issue5081

For printing to stdout you have to give an encoding that the terminal 
understands and that contains the character. In your case the terminal 
says "I speak cp 850" but of course there is no Euro sign in there. Why 
should that be a bug?


More information about the Python-list mailing list