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
Encoding, iconv.
Examples
isValidEncoding(c("latin1", "unknown-encoding"))
# [1]  TRUE FALSE
Package terrUtils version 6.1.1-7
Package Index