Arp-G / csv2sql

A blazing fast fully-automated CSV to database importer
MIT License
54 stars 4 forks source link

Fix BOM issue while parsing the file #38

Closed gaurav-kreeti closed 8 months ago

gaurav-kreeti commented 8 months ago

-Trim BOM while creating the file stream else it will raise error if any csv files contains BOM. If you pass :trim_bom in the modes parameter, the stream will trim UTF-8, UTF-16 and UTF-32 byte order marks when reading from file. Note that this function does not try to discover the file encoding basing on BOM.