-
Notifications
You must be signed in to change notification settings - Fork 211
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
Setting the BOM on write #180
Comments
I am not quite sure how to do this. Maybe you can do it like adaltas/node-csv#84 (comment)? You might have to make an extra stream and pipe one through the other though. Maybe someone else can provide a better example. |
Thank you for the options - will check them out asap. |
Hi @bizarrochris did you find a way to work around this? We are also having the same issue but couldn't get it working with a stream. |
* [ADDED] `writeBOM` option when formatting a csv #180
* [ADDED] `writeBOM` option when formatting a csv #180
* [ADDED] `writeBOM` option when formatting a csv #180
Added in |
Hi, we use the npm module to create csv exports and are generally very happy, however we still have the issue with utf-8 encoding, that excel does not recognise the files as utf-8 immediately.
According to: http://stackoverflow.com/questions/155097/microsoft-excel-mangles-diacritics-in-csv-files
adding the BOM would be the quickest fix.
Is there a way to add this to the stream. Our code looks like this (we use express.js):
If there is no way to do it, an option would be amazing to set the BOM.
Thx in advance.
The text was updated successfully, but these errors were encountered: