Here is my code,
for line in open(\'u.item\'): #read each line
whenever I run this code it gives the following error:
you can try this way:
open('u.item', encoding='utf8', errors='ignore')