fork: Use utf8 for channel encoding
authorRyan Dahl <ry@tinyclouds.org>
Tue, 17 May 2011 17:51:30 +0000 (10:51 -0700)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 17 May 2011 17:51:30 +0000 (10:51 -0700)
lib/child_process.js

index 353bfe5..5f983c9 100644 (file)
@@ -39,7 +39,7 @@ function setupChannel(target, fd) {
   target._channel.readable = true;
 
   target._channel.resume();
-  target._channel.setEncoding('ascii');
+  target._channel.setEncoding('utf8');
 
   var buffer = '';
   target._channel.on('data', function(d) {