Permalink
Browse files

node returns utf-8

Fixes #45
  • Loading branch information...
1 parent 5fbf39a commit 642067e4b48a16b160bd7c6d9288535127843c4f @josh josh committed Sep 13, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/execjs/runtimes.rb
View
@@ -18,7 +18,8 @@ module Runtimes
Node = ExternalRuntime.new(
:name => "Node.js (V8)",
:command => ["nodejs", "node"],
- :runner_path => ExecJS.root + "/support/node_runner.js"
+ :runner_path => ExecJS.root + "/support/node_runner.js",
+ :encoding => 'UTF-8'
)
JavaScriptCore = ExternalRuntime.new(

0 comments on commit 642067e

Please sign in to comment.