stri_enc_info(enc = NULL)
NULL
or ""
for default encoding,
or a single string with encoding nameName.friendly
-- Friendly encoding name: MIME
Name or JAVA Name orName.ICU
-- Encoding name as identified byName.*
-- other standardized
encoding names, e.g.Name.UTR22
,Name.IBM
,Name.WINDOWS
,Name.JAVA
,Name.IANA
,Name.MIME
(some may be not available for selected
encodings);ASCII.subset
-- is ASCII a subset
of the given encoding?;Unicode.1to1
-- for
8-bit encodings only: are all characters translated to
exactly one Unicode code point and is this translation well
reversible?;CharSize.8bit
-- is this an 8-bit
encoding, i.e. do we haveCharSize.min ==
CharSize.max
andCharSize.min == 1
?;CharSize.min
-- minimal number of bytes used to
represent a code point;CharSize.max
--
maximal number of bytes used to represent a code point.stri_enc_list
), an error is generated.If you set a default encoding that is not a superset of ASCII or it is not an 8-bit encoding, a warning will be generated, see stringi-encoding for discussion.
stri_enc_get
,
stri_enc_set
; stri_enc_list
;
stringi-encoding