Can't print national characters in IDLE with Python 2.2.1c1

Magnus Lyckå magnus at thinkware.se
Tue Mar 19 20:46:07 EST 2002


I don't know if something happened with 2.2.1rc1,
or with 2.2, since I used 2.1.2 until today, but
in IDLE I get:

Python 2.2.1c1 (#32, Mar 18 2002, 13:23:09) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
 >>> print 'åäö'
UnicodeError: ASCII encoding error: ordinal not in range(128)

With the command line version of Python on the same machine I get:

Python 2.2.1c1 (#32, Mar 18 2002, 13:23:09) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
 >>> print 'åäö'
åäö
 >>>

PythonWin also works as expected, as does IDLE 0.8 on 2.1.2. No error.

Can someone explain this?




More information about the Python-list mailing list