Character accented with R

Home / Uncategorized / Character accented with R

Question:
I am treating text with R (text classification) and I have a problem with some words in a french text , like for exemple this :
Chargu00e9 d’u00e9tude

How Can I do to resolve this problem?

Thank you


Answer:
I got the method from this answer:"Print unicode character string in R". It looks like R is supposed to handle accents but maybe something is missing on the original file, and R is not recognizing the text as Unicode.
library(stringi)
stri_unescape_unicode("Chargu00e9 d’u00e9tude")
[1] "Charg√© d’√©tude"
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *