powered by
A stricter comparison of string equality
string_identical(x, y)
TRUE if strings are identical, including encoding
A character vector
Another character to compare to x
identical
x <- "fa\xE7ile" Encoding(x) <- "latin1" y <- iconv(x, "latin1", "UTF-8") identical(x, y) # TRUE string_identical(x, y) # FALSE
Run the code above in your browser using DataLab