Skip to content

Commit 439a787

Browse files
committed
Force UTF8 for parsing
1 parent c67a5d7 commit 439a787

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/find.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ class hunspell_parser {
4848
CharacterVector parse(String txt){
4949
char * token;
5050
CharacterVector output;
51-
//txt.set_encoding(CE_UTF8);
51+
txt.set_encoding(CE_UTF8);
5252
parser->put_line((char*) txt.get_cstring());
5353
parser->set_url_checking(1);
5454
while ((token=parser->next_token())) {
5555
String x(token);
56-
x.set_encoding(txt.get_encoding());
56+
x.set_encoding(CE_UTF8);
5757
output.push_back(x);
5858
free(token);
5959
}

0 commit comments

Comments
 (0)