Closed jorakdev closed 4 years ago
Hi @jorakdev , I’m not too sure about what you mean by that. What are you trying to achieve?
Hi @ryu1kn, thank you for your reply. I would like to change the default encoding to ANSI like this:
const createCsvWriter = require('csv-writer').createArrayCsvWriter; const csvWriter = createCsvWriter({ header: ['NAME', 'LANGUAGE'], path: 'path/to/file.csv', encoding: 'ANSI' });
But but by reading what ANSI encoding means. I think there is some confusion over my understanding of what ANSI encoding is. So what do you think is the right way to do it?
Thanks. :)
Hmm... you can specify encoding that Node.js supports, and ANSI is not one of them.
https://stackoverflow.com/questions/14551608/list-of-encodings-that-node-js-supports
Wonder if you want ascii
I'm closing this. If you have more questions, feel free to reopen it.
@ryu1kn
Hmm... you can specify encoding that Node.js supports, and ANSI is not one of them.
https://stackoverflow.com/questions/14551608/list-of-encodings-that-node-js-supports
"hex" encoding generates a 0 byte file, so I assume the answer is not quite correct.
is encoding to ANSI working on createArrayCsvWriter(params)?