ryu1kn / csv-writer

Convert objects/arrays into a CSV string or write them into a CSV file
https://www.npmjs.com/package/csv-writer
MIT License
246 stars 39 forks source link

Question - Support for UTF-8 #18

Closed Martin-Andersen closed 5 years ago

Martin-Andersen commented 5 years ago

I am downloading data from google firestore and saving it to a file. Names withs ÆÅØ and other letters are mis-interpretation because of missing UTF-8 encoding.

How v´can I fix that? my code are running in nodejs 8

ryu1kn commented 5 years ago

Hi @Martin-Andersen , if the downloaded data is UTF-8, you shouldn't need to do anything as the default value for encoding parameter for csvWriters are UTF-8. 👉 README

Martin-Andersen commented 5 years ago

The only thing I can say! blame it on MS Excel (; It is working.

And thanks for creating the csv-writer

ryu1kn commented 5 years ago

Thanks @Martin-Andersen 👍

MonksterFX commented 3 years ago

Hey i would comment that excel has problems (other programms too) if there is no BOM.