I tried with this code it says UnicodeDecodeError.
base_file =open(textfiles[i], encoding='utf-16-le')
text = base_file.read()
I tried with this code it says UnicodeDecodeError.
base_file =open(textfiles[i], encoding='utf-16-le')
text = base_file.read()