You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading a UTF-8 BOM encoded text file, the magic bytes "EF BB BF" should not be part of the column name.
Actual Behavior
The magic bytes "EF BB BF" are part of the header and therefore the property name representing the column cannot be fetched from the object, i.e. if the column name is "Date(UTC)"
obj["Date(UTC)"] returns undefined.
Fetching the key via Object.getOwnProperties and putting the string in a node Buffer looks like this:
<Buffer ef bb bf 44 61 74 65 28 55 54 43 29>
vs. expected
<Buffer 44 61 74 65 28 55 54 43 29>
How Do We Reproduce?
Create a csv file and save as UTF-8 with BOM. Where the first column header is right at the beginning of the visible file contents, i.e.
Expected Behavior
When reading a UTF-8 BOM encoded text file, the magic bytes "EF BB BF" should not be part of the column name.
Actual Behavior
The magic bytes "EF BB BF" are part of the header and therefore the property name representing the column cannot be fetched from the object, i.e. if the column name is "Date(UTC)"
obj["Date(UTC)"]
returnsundefined
.Fetching the key via
Object.getOwnProperties
and putting the string in a nodeBuffer
looks like this:vs. expected
How Do We Reproduce?
Create a csv file and save as UTF-8 with BOM. Where the first column header is right at the beginning of the visible file contents, i.e.
The text was updated successfully, but these errors were encountered: