powered by
Converts the encoding of a character vector to 'ascii', and check if the result is NA.
'ascii'
NA
is_ascii(x)
A logical vector indicating whether each element of the character vector is ASCII.
A character vector.
library(xfun) is_ascii(letters) # yes is_ascii(intToUtf8(8212)) # no
Run the code above in your browser using DataLab