Enable being able to turn off BOM #45
ragingdave
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So it occurred to me as I'm doing a bulk export package utilizing this and I have a need to append a file on a previous "chunk".
Currently when doing this, each chunk file, starts with a BOM. This causes a BOM marker at each appended chunk.
The underlying box/spout package has the capacity to disable BOM, but due to immediately calling openWriter after creating the internal writer, this package bypasses any configurable BOM changes, and enforces BOM on all files created this way.
I'm not entirely sure the best way to enable this functionality without some flag or additional param to the create method. This I feel like would complicate an otherwise beautifully simple package, so I was looking for perhaps some insight into what might be still simple but allow disabling BOM on files.
Some initial thoughts would be something like this (again untested....off the cuff):
where it allows any initial configuration of the internal writer instance, which would enable any and all functionality from box/spout in a relatively still clean method without a bunch of new methods to allow passthrough.
Beta Was this translation helpful? Give feedback.
All reactions