java - HtmlPage.save() doesn't preserve arabic characters -
using htmlunit 2.15, trying call myhtmlpage.save(file) on page has both english , arabic content doesn't save page in correct format. ??? (question marks) displayed in place of arabic characters.
code snippet:
file filetosave = new file("d:\\abc.txt"); final htmlpage startpage = webclient.getpage(baseurl); startpage.save(filetosave);
opening saved page in browsers (chrome & ie8 both) or editor (notepadd++) shows ?? arabic characters.
how htmlpage.save() save correct arabic characters? in advance.
Comments
Post a Comment