isValidEncoding
Valid String Encoding
Description
Determine if strings are valid string encoding names.
Usage
isValidEncoding(encoding)
Arguments
encoding |
a character vector of string encoding names.
|
Value
a logical vector similar to the input, with
TRUE values for the elements that were valid string encoding names,
acceptable to
iconv.
See Also
Examples
isValidEncoding(c("latin1", "unknown-encoding"))
# [1] TRUE FALSE