Skip UTF BOM from first data event on UTF-8 decoded stream #55

Merged
merged 1 commit into from Oct 18, 2012

2 participants

@dougwilson

This is a conservative implementation for issue #36. I don't always agree with things stripping the UTF BOM on a file, but it seems it may be useful for the CSV parser. This will strip the BOM from a stream only when the stream's encoding is set to UTF-8 and the BOM is the first character in the first data event (which should be the beginning of the file 99% of the time).

@wdavidw wdavidw merged commit 40dfd12 into wdavidw:master Oct 18, 2012

1 check passed

Details default The Travis build passed
@wdavidw
Owner

This is how I was planning to do it. Look perfect to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment