The phantomjs outputEncoding.js example doesn't display the right characters (danish characters)...
I'm running phantomjs 1.7 on windows.
(This used to work when I was running phantomjs 1.4 on linux but also gives an error on linux after updating to the 1.8.2 version)
outputEncoding.js:
function helloWorld() {
console.log(phantom.outputEncoding + ": æøå");
}
console.log("Using default encoding...");
helloWorld();
console.log("\nUsing other encodings...");
var encodings = ["euc-jp", "sjis", "utf8", "System"];
for (var i = 0; i < encodings.length; i++) {
phantom.outputEncoding = encodings[i];
helloWorld();
}
phantom.exit();
result from console:
Any help is really appreciated!
Thanks.