Java script - working with csv encoding
In Java Script CSV file can be parred with csv-parser
When using it to work with a file that contained polish characters I got problems weird output.
Proper encoding was missing. In this case ISO-8859-2
Csv-parser docs recommends to use iconv-lite.
I just double checked supported encodings on the parent project inconv. And added one line which solved my problems.
fs.createReadStream('my.csv')
.pipe(iconv.decodeStream('ISO-8859-2'))