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

How to auto-detect encoding of csv file?

Open SeungrokYoon opened this issue 1 year ago • 0 comments

Hello! It is my first time to make a question in this project.

First of all, thank you for making this amazing library which dramatically reduced my working time!

By the way, I had trouble finding out my csv file's encoding. I had to try all the possible encoding options provided and finally found out my csv is encoded with 'utf16le'.

However, in your demo project - which was awesome -, it seems like the encoding type is auto-detected.

If I am correct, could you share the under the hood mechanism of detecting encoding type?

Thank you for reading, and have a great day!👍

SeungrokYoon avatar May 07 '24 05:05 SeungrokYoon