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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -