Is there any way in casperjs to specify the encoding when saving the html content of the page to the file? I saved in ANSI, but I need utf-8
casper.thenOpen(myurli, function(){ var page1 = this.getHTML(); fs.write(file_path, page1, 'wb'); }); Source: https://ru.stackoverflow.com/questions/622311/
All Articles