print "Español\nPortuguês\nItaliano".encode('utf-8')
Errors:
Traceback (most recent call last): File "", line 1, in print "Español\nPortuguês\nItaliano".encode('utf-8') UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 4: ordinal not in range(128)
I'm trying to make a multilingual console program in Windows. Is this possible? I've saved the file in utf-8 encoding as well, I get the same error.
*EDIT I"m just outputting text in this program. I change to lucida fonts, I keep getting this:
I'm just looking for a portable way to correctly display foreign languages in the console in windows. If it can do it cross platform, even better. I thought utf-8 was the answer, but all of you are telling me fonts, etc.. also plays a part. So anyone have a definitive answer?