Reputation: 6940
How to handle Cyrillic strings in R?
Sys.setlocale("LC_ALL","Polish")
dataset <- data.frame( ProductName = c('ąęćśżźół','тест') )
#Encoding(dataset) <- "UTF-8" #this line does not change anything
View(dataset)
But I would like to get what I typed in тест
instead of sequence <U+number>
. Is there any way for that?
Upvotes: 1
Views: 376
Reputation: 2581
This works for me and see the cyrillic test in my data frame.
I think you should check what your locale is (with sessionInfo
) and whether it supports UTF.
Also check this link and try to maybe change the encoding of your column.
Encoding(dataset$Cyrillic) <- "UTF-8"
Upvotes: 1