I have a data frame that containts polish diacritic signs however in my data frame they are presented as e.g. ZESP\xc3\x93\xc5\x81 SZK\xc3\x93\xc5\x81
which should be ZESPÓŁ SZKÓŁ
. I was trying to make a replace for all of those characeters:
e.g.
x <- "SP\\xc3\\x93\\xc5\\x81KA"
x1 <- data.frame(x)
data <- data.frame(lapply(x1, function(df3) {
gsub("SP\\xc3\\x93\\xc5\\x81KA", "SPÓŁKA", df3)
}))
However such a replace does not work. How to deal with those type of data frames? How to force it to display correct diacritic signs?
I have added a fully reproducible example. Any ideas? Some solutions?