summaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/phantomjs/lib/phantom/examples/outputEncoding.coffee
blob: 9d212caf220a9bda350bc54482990a82eb12373d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
helloWorld = () -> console.log phantom.outputEncoding + ": こんにちは、世界!"

console.log "Using default encoding..."
helloWorld()

console.log "\nUsing other encodings..."
for enc in ["euc-jp", "sjis", "utf8", "System"]
  do (enc) ->
    phantom.outputEncoding = enc
    helloWorld()

phantom.exit()