Possible Duplicate:
Python, Unicode, and the Windows console
I read some strings from file and when I try to print these utf-8 strings in windows console, I get error
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128)
I've tried to set console-encoding to utf-8 with "chcp 65001" But than I than get this error message
LookupError: unknown encoding: cp65001
chcp 65001. BTW. the relevant environment variable is setting isSET PYTHONIOENCODING=utf-8(you can trymbcs, too), but neither will work, because cp65001 is buggy, and the winapi is buggy (I am not sure what 'mbcs' supposed to do but it won't help).