Przemyslaw Remin
Przemyslaw Remin

Reputation: 6940

Entering and viewing Cyrillic strings in R

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)

The code above results in: enter image description here

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

Answers (1)

Arienrhod
Arienrhod

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

Related Questions