UnicodeDecodeError issue

Ferrous Cranus nikos at superhost.gr
Wed Sep 4 10:29:31 EDT 2013


Στις 4/9/2013 3:38 μμ, ο/η Dave Angel έγραψε:
> 'file' isn't magic.  And again, it doesn't look at the filename, it
> looks at the content.
So, you are saying that it looks a the content of the file and not of 
what encoding we used to save the file into?

But the contents have within:

f.write(b'\xb6\xe3\xed\xf9\xf3\xf4\xef\xfc\xed\xef\xec\xe1 
\xf3\xf\xf3\xf4\xde\xec\xe1\xf4\xef\xf2\n')

so it should have said greek-iso and not ascii.

-- 
Webhost <http://superhost.gr>



More information about the Python-list mailing list