In my NodeJS application, I need to read some text files with different encodings and out put it to console.
I use chardet module to detect encoding of the text files, however fs.readfile method don't like the detected encoding by chardet. It throws exception like "The value "ISO8859-9" is invalid for option "encoding"
Do you have any idea on how to output the contents of the text files?
Regards