stri_enc_list: List Known Character Encodings

Description Usage Arguments Details Value See Also

Description

Gives encodings that are supported by ICU.

Usage

1
stri_enc_list(simplified = FALSE)

Arguments

simplified

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

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.

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.

See Also

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


stringi documentation built on May 2, 2019, 4:54 p.m.