Open debpaul opened 2 years ago
From @JasonBest via Slack.
@John Wieczorek John, I have only glanced at some of the code handling CSV at https://github.com/VertNet/bels/blob/main/bels/ and haven't wrapped my head around all the things you're doing to determine the CSV encoding but it looks like if you could find a way to sniff the presence of a BOM, you could use encoding=utf-8-sig rather than just utf-8. This will allow the CSV reader to handle the BOM.
Issue: Excel encoding CSV as UTF-8 is defaulting to UTF-8-BOM Result: BELS web app column rename fails resulting in the following error message. Recreate this error using this file: testBELS1.csv
Details
Ideas Others will use Excel. So what to do?
'\ufeff'
be stripped in the script that checks/maps/renames column headers?