From c9c5f3441ad872dfe9b65690e92fbe205985113d Mon Sep 17 00:00:00 2001 From: Manuel de la Higuera Date: Sat, 25 Apr 2015 15:42:49 +0200 Subject: [PATCH] From ASCII to UTF-8 --- lib/natural/wordnet/wordnet_file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/natural/wordnet/wordnet_file.js b/lib/natural/wordnet/wordnet_file.js index a80486dfa..5967ad754 100644 --- a/lib/natural/wordnet/wordnet_file.js +++ b/lib/natural/wordnet/wordnet_file.js @@ -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); }