use utf8 encoding for stdout from aspell

This commit is contained in:
Brian Gough 2019-09-27 11:28:03 +01:00
parent 5c82ef80b6
commit f273a27b95

View file

@ -128,6 +128,7 @@ class ASpellWorker {
}
})
this.pipe.stdout.setEncoding('utf8') // ensure utf8 output is handled correctly
var output = ''
const endMarker = new RegExp('^[a-z][a-z]', 'm')
this.pipe.stdout.on('data', chunk => {