Skip to content

Commit

Permalink
Merge pull request NaturalNode#232 from mhiguera/patch-1
Browse files Browse the repository at this point in the history
From ASCII to UTF-8
  • Loading branch information
kkoch986 committed Sep 7, 2015
2 parents d77ee23 + c9c5f34 commit 6b5b2f8
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 6b5b2f8

Please sign in to comment.