Skip to content

Fix CSV node to remove initial BOM char - #5864

Merged
knolleary merged 1 commit into
mainfrom
Fix-CSV-BOM-char
Oct 14, 2026
Merged

knolleary merged 1 commit into
mainfrom
Fix-CSV-BOM-char

Conversation

@dceejay

@dceejay dceejay commented Jul 11, 2026 •

Copy link
Copy Markdown
Member

makes column parsing much cleaner if no hidden unwanted BOM char at start of file
see https://node-red.slack.com/archives/C0LBBMNRY/p1783118747637039
for discussion and reason

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

Removes an unwanted BOM char that many CSV exports (eg excel) add to the head of a CSV text file. This causes the column parser to include that char and so creates a column name with a hidden initial character. This fix removes any BOM char found at the beginning of the file.

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

makes column parsing much cleaner if no hidden unwanted chars
@knolleary
knolleary merged commit a934e60 into main Oct 14, 2026
3 checks passed
@knolleary
knolleary deleted the Fix-CSV-BOM-char branch October 14, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants