-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UTF-8 CSV file with BOM adds extra space character to first parsed field name #10
Comments
This should be reported to the underlaying parser: https://github.com/mafintosh/csv-parser |
By the way, UTF-8 should not have a BOM. |
The Unicode Standard permits the BOM in UTF-8, but does not require or recommend its use. I only ran into this because the export file created by Toad for MySQL was UTF-8 encoded with a BOM. |
I'm running into this same issue! My column name should be "Chemical", but it's not matching "Chemical" because there is a character in front of it similar to a space but it's like a hidden space. Is there a work-around for this? I'm not sure what BOM means, but it's just a CSV I saved out from Excel. |
Perform a Replace() function on the column name to remove all characters that don't belong. e.g. anything except a-zA-Z0-9 (or whatever else you need) |
e.g. UTF-8 file with BOM:
imports as:
I was able to work around this by converting the file to ANSI.
The text was updated successfully, but these errors were encountered: