I have an ansi file with 'Ł' character I would like to read this character and save it to another file with the same encoding(to get 'Ł' character).
const fs = require('fs');
var content = fs.readFileSync('input.txt',null); //Ł
fs.writeFileSync('output.txt',content,null); //Ł how to get this?
How to do this with nodejs?
Update: I checked the input file:
file -i
text/plain charset=uknown-8bit
file -r
Non-ISO extended-ASCII, text with very long lines, with CRLF line terminators
Can I save the file with such details?