I have vector (x) of countries, one of the countries is Cote d'Ivoire
x <- c("c\u00f4te", "côte") I investigate x I realized that the both cote are not the same
showNonASCII(x) 1: cte 2: cte iconv(x, to="ASCII//TRANSLIT") [1] "cA?te" "cote" Encoding(x) [1] "UTF-8" "latin1"
I would like to unify to so both x are latin1 and equal to each other.