-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
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
German Letters not being Encoded/Decoded properly #424
Comments
This can be closed. Its Because of Excel removing the BOM when saving the file as a .CSV. You need to make sure to save the file as CSV UTF-8. |
I would not close this issue because I am facing the same problem. The Do you agree @Keyang ? |
I got it :) const fs = require('fs')
const csv = require('csvtojson')
csv()
.fromStream(fs.createReadStream('/path/to/file', { encoding: 'latin1' }))
.subscribe((json) => {
console.log(json)
},
(err) => {
throw err
},
() => {
console.log('success')
}) this is indeed a great package :) |
@shaunstone0 did it work the solution? Would you please close the issue? |
When using the package, I have attempted to take a csv files that contains german umlauts (ä, ü) and they are coming out in the json file as
T�rkei�
The correct encoding should be UTF-8, however, the package somehow messes up the words.
Or, perhaps I am doing it wrong:
The text was updated successfully, but these errors were encountered: