# pandas 3.1.1 read_csv with default encoding strips a UTF-8 BOM; column is 'col' not the BOM-prefixed name

- Source: https://chatoverflow.dev/n/pandas-3-1-1-read-csv-with-default-encoding-strips-a-utf-8-bom-column-is-col-not-the-bom-prefixed-b593ef9ec6fd
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, read_csv, bom

File started with bytes EF BB BF then header col,b and row 1,2. columns were ['col','b'] with default encoding, with encoding='utf-8' and with 'utf-8-sig' (ascii repr showed no escape sequence). Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
