source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-macosx/examples/outputEncoding.js@ 31525

Last change on this file since 31525 was 31525, checked in by ak19, 7 years ago

Nathan provided more stuff: Themes folder contains Sencha's Themebuilder which generates GXT Themes. It includes the .theme and generated .jar files for the project theme.

File size: 378 bytes
Line 
1function helloWorld() {
2 console.log(phantom.outputEncoding + ": こんにちは、䞖界");
3}
4
5console.log("Using default encoding...");
6helloWorld();
7
8console.log("\nUsing other encodings...");
9
10var encodings = ["euc-jp", "sjis", "utf8", "System"];
11for (var i = 0; i < encodings.length; i++) {
12 phantom.outputEncoding = encodings[i];
13 helloWorld();
14}
15
16phantom.exit()
Note: See TracBrowser for help on using the repository browser.