Running the code in PhantomJS might bring source code instead of page (the screenshot from that is generated using page.render);


The reason of that is because the file has encoding UTF-8 with BOM. You’ll need to convert encoding to UTF-8 without BOM. After that the page is rendered properly.



You can leave a response, or trackback from your own site.

Before you add comment see for rules.

Leave a Reply

Your email address will not be published. Required fields are marked *