Ich habe jetzt auch gemerkt, es lag an der Schriftart, dass das cmd-Fenster sich so komisch verhalten hat:
Code: Alles auswählen
C:\Users\sirus3> chcp 1252
Aktive Codepage: 1252.
C:\Users\sirus3> python
Python 2.7.13
Type "help", "copyright", "credits" or "license" for more information.
>>> print u"\xfc"
ü
>>> print u"\u20ac"
€
>>> ^Z
C:\Users\sirus3> chcp 850
Aktive Codepage: 850.
C:\Users\sirus3> python
Python 2.7.13
Type "help", "copyright", "credits" or "license" for more information.
>>> print u"\xfc"
ü
>>> print u"\u20ac"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\encodings\cp850.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u20ac' in position 0: character maps to <undefined>