Learn R Programming

stringi (version 0.1-25)

stri_enc_list: List Known Character Encodings

Description

Gives encodings that are supported by ICU.

Usage

stri_enc_list(simplified = FALSE)

Arguments

simplified
single logical value; return a character vector or a list of character vectors?

Value

  • If simplified is FALSE (the default), a list of character vectors is returned. Each list element represents a unique character encoding. The name attribute gives the ICU Canonical Name of an encoding family. The elements (character vectors) are its aliases.

    If simplified is TRUE, then the resulting list is coerced to a character vector, sorted, and its duplicates are removed.

Details

Please note that apart from given encodings, ICU tries to normalize encoding specifiers. E.g. "UTF8" is also valid, see stringi-encoding for more information.

See Also

Other encoding_management: stri_enc_get, stri_enc_set; stri_enc_info; stringi-encoding