Check the validity of a byte stream ot be interpreted as UTF8.
checkUTF8.RdcheckUTF8 check whether a given raw vector can be used as a
valid string encoded in UTF8.
Arguments
- what
raw vector with the payload
- quiet
logical, if
TRUEthen the function will not fail but report success/failure via its result, otherwise failures are considered errors.- charlen
logical, if
TRUEthen the function returns the length of the longest byte sequence representing a character in the file.- min.char
integer, any bytes below this value are considered control chacters and reported as errors. The default value of 1L guards against strings including NULs.