Michael Foord <[EMAIL PROTECTED]> added the comment: Hmmm... nope - my terminal encoding (according to Python) on WIndows Vista x64 (with 32bit Python and a vanilla cmd) is cp850.
C:\compile>C:\Python30\python.exe Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) [MSC v.1500 32 bit (Intel)] on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> '\u20ac' Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python30\lib\io.py", line 1491, in write b = encoder.encode(s) File "C:\Python30\lib\encodings\cp850.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u20ac' in position 1: character maps to <undefined> Oh well. (The traceback I posted was from Max OS X 10.5 - I didn't dig closely enough to see that a different encoding was being used on Windows, my bad - and thanks for the tip about ascii() ). _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4599> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com