I have a .csv file with some Cyrillic text. When I used
readr::read_delim() to upload it to the R I faced an issue with encoding - the text is shown as
<c0><e1>..... When loaded to google sheets it works just fine and converts this code into Cyrillic characters.
After some googling, I found that this hex code is matching neither ASCII nor MARC-8. Furthermore, R already thinks it is UTF-8.
read.csv()differently read this file.
suppressWarnings(library(tidyverse)) rates <- suppressMessages(read_delim("rates.csv", skip = 2, delim = ";")) x <- rates$SHORTNAME[] # x should be "АСКО" (Cyrillic) x #>  "<c0><d1><ca><ce>" Encoding(x) #>  "UTF-8" rates2 <- read.csv("rates.csv", skip = 2, sep = ";") y <- rates2$SHORTNAME[] # y also should be "АСКО" (Cyrillic) y #>  "ÀÑÊÎ" Encoding(y) #>  "unknown"
So, my question is how to convert this text into something readable?