Skip to content

Remove BOM in CsvFileIterator #8

Description

@BenMorel

When reading a file with an UTF-8 BOM (or any other BOM, for that matter) , the BOM is part of the fgetcsv() read, which corrupts the header row:

  • the BOM is part of the first column's name
  • if an enclosure character (e.g. ") is used, it's not detected for the first column name

Note sure whether removing the BOM should be part of this library, or whether we should rely on a filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions