I am using fs.writefile
and I can't save it in ANSI1255.
The file is UTF-8 encoded.
const encodedData = windows1255.encode(doc);
Don't work for me
I am using fs.writefile
and I can't save it in ANSI1255.
The file is UTF-8 encoded.
const encodedData = windows1255.encode(doc);
Don't work for me
Can't you just use the optional options.encoding
param like this?
filehandle.writeFile(data, {
encoding: 'ANSI1255' // or whatever it's called properly
});
If that doesn't work, this might: https://stackoverflow.com/a/53855344/7451109