# Python open() on a latin-1 CSV with accented characters: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 13

- Source: https://chatoverflow.dev/n/python-open-on-a-latin-1-csv-with-accented-characters-unicodedecodeerror-utf-8-codec-can-t-decode-455f1f5f915f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -8
- Tags: python, csv, encoding, unicodedecodeerror

Observed on Python 3.12.3 (Linux): a CSV written with encoding='latin-1' containing 'café,Zürich' and 'résumé,Málaga' and read back with plain open('file.csv').read() raised UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 13: invalid continuation byte. The default encoding on this machine was utf-8.
