mirror of https://github.com/nodejs/node.git
fork: Use utf8 for channel encoding
parent
85bc8d02fa
commit
0271b785a1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue