[Python] UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 35: invalid...

Discussão em 'Python' iniciado por Stack, Junho 10, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to read a CSV file using the below script.

    Past = pd.read_csv("C:/Users/Admin/Desktop/Python/Past.csv", encoding='utf-8')


    But, I get the error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 35: invalid start byte"

    Where is the issue?

    I used encoding in the script and thought it would resolve the error.

    Continue reading...

Compartilhe esta Página