Skip to content

Commit

Permalink
From ASCII to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
mhiguera committed Apr 25, 2015
1 parent fd0340c commit c9c5f34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/natural/wordnet/wordnet_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function appendLineChar(fd, pos, buffPos, buff, callback) {
console.log(err);
else {
if(buff[buffPos] == 10 || buffPos == buff.length)
callback(buff.slice(0, buffPos).toString('ASCII'));
callback(buff.slice(0, buffPos).toString('UTF-8'));
else {
appendLineChar(fd, pos + 1, buffPos + 1, buff, callback);
}
Expand Down

0 comments on commit c9c5f34

Please sign in to comment.