unicodeDecodedError

i am trying to open a text file i created while learning but i am facing this error. can someone help me understand what is going wrong and how can i fix this

CODE:

```

files= open(“poem.txt”,“r”)

print(files)

output=files.read()

print(output)

```

Error: ‘utf-8’ codec can’t decode byte 0x97 in position 94: invalid start byte

Hi Varun,
Please refer this thread

1 Like

Thank you so much sir