Skip to content

Commit 9961290

Browse files
committed
fix: Set the output encoding to utf-8 when logging
1 parent f848234 commit 9961290

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DenoWorker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,13 @@ export class DenoWorker {
300300
this._stderr = <Readable>this._process.stderr;
301301

302302
if (this._options.logStdout) {
303+
this.stdout.setEncoding('utf-8');
303304
this.stdout.on('data', (data) => {
304305
console.log('[deno]', data);
305306
});
306307
}
307308
if (this._options.logStderr) {
309+
this.stderr.setEncoding('utf-8');
308310
this.stderr.on('data', (data) => {
309311
console.log('[deno]', data);
310312
});

0 commit comments

Comments
 (0)