R/validation-utf.R
isUTF8.Rd
Assess if a character vector is UTF-8 encoded.
isUTF8(text)
A character vector
A logical assessing whether there is non UTF-8 encoded characters in text
text
isUTF8("Hello, world!") #TRUE #> [1] TRUE isUTF8("\xb5g/L") #FALSE #> [1] FALSE