I have several dataframes in Russian in UTF-8, and earlier before 4.0.4 update strings were displayed in the console correctly but now they look like this:
test <- c('привет')
test
[1] "\u043f\u0440\u0438\u0432\u0435\u0442"
I checked encoding for sure
Encoding(test)
[1] "UTF-8"
This is weird, because the locale is set correctly
> sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
locale:
[1] ru_RU.UTF-8/ru_RU.UTF-8/ru_RU.UTF-8/C/ru_RU.UTF-8/ru_RU.UTF-8
What is even weirder, I can set Cyrillic variables and they are displayed correctly
привет <- 100
привет
[1] 100
The situation is similar if I do all the same steps in R itself, not in RStudio. So for me it looks like a bug.
I am run out of any ideas and I will be very happy if someone tell me how to return the display of Cyrillic characters in the console!