Skip to content
This repository was archived by the owner on Feb 3, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions htmltidy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ function TidyWorker(opts) {
this.writable= true;
this.readable= true;
this._worker = spawn(tidyExec, parseOpts(mergedOpts));
this._worker.stdout.setEncoding('utf8'); //Fix : ISO-8859-1 special characters not translated correctly

var self = this;
var errors = '';

this._worker.stdin.on('drain', function () {
self.emit('drain');
});
Expand Down