Gives the list of encodings that are supported by ICU.
stri_enc_list(simplify = TRUE)
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.
single logical value; return a character vector or a list of character vectors?
Marek Gagolewski and other contributors
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.
The official online manual of stringi at https://stringi.gagolewski.com/
Gagolewski M., stringi: Fast and portable character string processing in R, Journal of Statistical Software 103(2), 2022, 1-59, tools:::Rd_expr_doi("10.18637/jss.v103.i02")
Other encoding_management:
about_encoding
,
stri_enc_info()
,
stri_enc_mark()
,
stri_enc_set()
stri_enc_list()
stri_enc_list(FALSE)
Run the code above in your browser using DataLab