Skip to content

Non-ASCII symbol causes error #10

Open
@trinker

Description

@trinker

A copy from an email from [email protected]

I was trying your hunspell package and i recognized,
that if there is a EURO symbol in the text
make_lemma_dictionary gives an error.

make_lemma_dictionary("some text with € symbol", 
                      engine = "hunspell", lang = "de_AT")
## Error in R_hunspell_stem(dictionary, words) : 
##   basic_string::_M_construct null not valid

I found the same behavior for

c("€", "…", "“", "„")

I am not sure if this is the intended behavior,
but if not it would be maybe the easiest if
you run intToUtf8 for some reasonable sequence
and exclude all the symbols which cause trouble.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions