I have file encoded with koi8-u
I need to just copy this file, but, through toString()
fs = require('fs')
fs.readFile('fileOne',function(e,data){
data = data.toString() // now encoding is damaged
??? // my code must be here
fs.writeFile('fileTwo',data)
})
I tried iconv it back using different charsets but with no success. Thanks!
binary? Why do you need a string? Couldn't this be done withBufferorstreams?