Here is my code
for line in open('u.item'):
whenever I run this code, it gives the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2892: invalid continuation byte
I tried to solve this problem and add an additional parameter to open (), the code looks like this:
for line in open('u.item', encoding='utf-8'):
But again he gives the same error. what should i do then! Please, help.
SujitS Oct 31 '13 at 5:55 on 2013-10-31 05:55
source share