stri_enc_list: List Known Character Encodings

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/encoding_management.R

Description

Gives the list of encodings that are supported by ICU.

Usage

1
stri_enc_list(simplify = TRUE)

Arguments

simplify

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

Details

Apart from given encoding identifiers and their aliases, some other specifiers might additionally be available. This is due to the fact that ICU tries to normalize converter names. For instance, 'UTF8' is also valid, see stringi-encoding for more information.

Value

If simplify is FALSE, 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 simplify is TRUE (the default), then the resulting list is coerced to a character vector and sorted, and returned with removed duplicated entries.

Author(s)

Marek Gagolewski and other contributors

See Also

The official online manual of stringi at https://stringi.gagolewski.com/

Other encoding_management: about_encoding, stri_enc_info(), stri_enc_mark(), stri_enc_set()

Examples

1
2

stringi documentation built on May 17, 2021, 9:07 a.m.