I am trying to read .res files and this is the error I get :
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xda in position 27: invalid continuation byte.
I tried studying similar problem solutions but nothing is working out. Please find below my piece of code:
df = pd.DataFrame()
for filename in os.listdir():
#with open(filename, encoding='utf-8') as f:
#F=filename.read().split()
if filename.endswith(".res"):
Data=open(filename)
F=Data.read()