Here is my code,
for line in open('u.item'):
# Read each line
Whenever I run this code it gives the subsequent error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 2892: invalid continuation byte
I tried to unravel this and add an additional parameter in open(). The code looks like:
for line in open('u.item', encoding='utf-8'):
# Read each line
But again it gives an equivalent error. What should I do then?