Add UTF-8 BOM support
I don't know if is right that adding a parameter called options, so I just send a PR with utf8 BOM support, .csv file should be away from encoding problems
Line 52: https://github.com/fanweixiao/nice-json2csv/commit/a3e4815e44663cc292ba17ee762c6c1544917b96#diff-1f8bcb5be7db7c497bfc0d8166c2bd70L52 should be fixing this. Can you explain a little better what are you trying to fix? What version of node and express are you using to get this problem?
DIdn't got an answer about this question, so I'm closing this. In case you want to clarify, can you open another issue? Thanks.
Sorry for did not reply immediately. I encountered problems when opening .csv file by Mac Office Excel in chinese, I added utf8 BOM to resolve this.
It would be very helpful if you could include:
- [ ] an input
- [ ] the output for that input (with the error)
- [ ] the expected output
In that case, I would be able to create a failing test and then work on the fix.
Thanks Matteo