Hello there! I have exactly the same problem, as in this topic: Problem with cyrillic characters
The only difference is that i have Windows, not Mac. Here how it goes:
a <- c('Привет!')
a
[1] "\u041f\u0440\u0438\u0432\u0435\u0442!"
Encoding gives me this one:
Encoding(a)
[1] "unknown"
And my session info looks like this:
sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)Matrix products: default
locale:
[1] LC_COLLATE=Russian_Russia.1251 LC_CTYPE=Russian_Russia.1251
[3] LC_MONETARY=Russian_Russia.1251 LC_NUMERIC=C
[5] LC_TIME=Russian_Russia.1251attached base packages:
[1] stats graphics grDevices utils datasets methods baseloaded via a namespace (and not attached):
[1] compiler_4.0.4 tools_4.0.4 tinytex_0.29 xfun_0.21
Unfourtunately, i did not really understand an answer from the topic i mentioned above. I will be very grateful if someone could give me some advise on fixing this problem!