Cyrillic letters in RStudio

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('Привет!')
[1] "\u041f\u0440\u0438\u0432\u0435\u0442!"

Encoding gives me this one:

[1] "unknown"

And my session info looks like this:

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

[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.1251

attached base packages:
[1] stats graphics grDevices utils datasets methods base

loaded 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!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.