source: other-projects/FileTransfer-WebSocketPair/Themes/themebuilder/bin/phantomjs-1.9.2-windows/examples/outputEncoding.coffee@ 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: 312 bytes
Line 
1helloWorld = () -> console.log phantom.outputEncoding + ": こんにちは、䞖界"
2
3console.log "Using default encoding..."
4helloWorld()
5
6console.log "\nUsing other encodings..."
7for enc in ["euc-jp", "sjis", "utf8", "System"]
8 do (enc) ->
9 phantom.outputEncoding = enc
10 helloWorld()
11
12phantom.exit()
Note: See TracBrowser for help on using the repository browser.