We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using "¬" as a separator in csv file should work. Output should look like:
[ { a: '1', 'b': '2' } ]
Parsing seems not correct. Producing something like this:
[ { 'a�b': '1�2' } ]
Test file:
a¬b 1¬2
Code:
const csv = require('csv-parser'); const fs = require('fs'); var iconv = require('iconv-lite'); const fileName = ('/tmp/test.csv') const results = [] fs.createReadStream(fileName) // .pipe(iconv.decodeStream("utf-8")) // .pipe(iconv.decodeStream("latin1")) // .pipe(iconv.encodeStream("utf-8")) .pipe(csv({ separator: '¬' })) .on('data', (row) => { results.push(row) }) .on('end', () => { // console.log(JSON.stringify(results, null, 4)) console.log(results) console.log('CSV file successfully processed'); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Using "¬" as a separator in csv file should work. Output should look like:
Actual Behavior
Parsing seems not correct. Producing something like this:
How Do We Reproduce?
Test file:
Code:
The text was updated successfully, but these errors were encountered: