Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*._match functions don't work with certain foreign characters. #16

Open
deschen1 opened this issue Jan 17, 2022 · 0 comments
Open

*._match functions don't work with certain foreign characters. #16

deschen1 opened this issue Jan 17, 2022 · 0 comments

Comments

@deschen1
Copy link

When using one of the match functions (i.e. prefix_match in my case) it returns weird character symbols for many "foreign" characters, e.g. German ä, ö, ü or ß or basically all Hindi words/characters.

Example:

labels <- c("test", "Vie privée", "Vie", "फेसबुक के विकल्प के तौर पर Insagram ऐप का इस्ते")
trie <- trie(keys = labels, values = labels)
a <- prefix_match(trie, labels)

which returns:

[[1]]
[1] "test"

[[2]]
[1] "Vie privée"

[[3]]
[1] "Vie"        "Vie privée"

[[4]]
[1] "फेसबà¥\u0081क के विकलà¥\u008dप के तौर पर Insagram à¤\u0090प का इसà¥\u008dते"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant