node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

à is converted to à in json

Open aniltomar10 opened this issue 5 years ago • 1 comments

csv file has à in one columns string. after conversion to json it shows à

aniltomar10 avatar Nov 13 '18 23:11 aniltomar10

Hi, I cannot reproduce the problem. If I have a file like below:

a,b,c
Ã,b,c

and the file is encoded as utf8 the output is like:

[
{"a":"Ã","b":"b","c":"c"}
]

Could you make sure your data source is utf8 encoded?

You can use module like iconv to convert to utf8 encoding.

~Keyang

Keyang avatar Nov 14 '18 09:11 Keyang