Wrong encoding when loading UTF-8 csv file.
Hi, I'm having an issue related to encoding. My Worksheet is in UTF-8 encoding, but when I read it in nodejs, it's shown broken like below:
Original Text: Ajuste de horário. Shown Text: Ajuste de hor�rio.
How do I fix this?
Thanks.
What version of csvtojson you are using?
Sent from my iPhone
On 8 Oct 2017, at 02:00, Felipe S. Fernandes [email protected] wrote:
Hi, I'm having an issue related to encoding. My Worksheet is in UTF-8 encoding, but when I read it in nodejs, it's shown broken like below:
Original Text: Ajuste de horário. Shown Text: Ajuste de hor�rio.
How do I fix this?
Thanks.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
"csvtojson": "^1.1.9"
I discovered the .csv file I get is generated by an old system, so it might be bugged related to encoding. It's not really a problem with your package, but would be good if it was able to read this kind of csv files. So I've done this and now it reads fine when loading. Shouldn't be the best performatic solution, but I guess that's what can be done.
iconv file1csv -f latin1 -t utf-8 -o file2.csv
Glad your sorted this out. Encoding is a frequently asked question. Could possibly add a section in README for this.