stri_enc_set sets the encoding used to re-encode strings
internally (i.e. by R) declared to be in native encoding,
see stringi-encoding and stri_enc_mark.
stri_enc_get returns currently used default encoding.stri_enc_set(enc)stri_enc_get()
stri_enc_list for the list of supported encodings.stri_enc_set returns a string with
previously used character encoding, invisibly.stri_enc_get returns a string with current default character
encoding.
stri_enc_get is the same as
stri_enc_info(NULL)$Name.friendly.Note that changing the default encoding may have undesired consequences.
Unless you are an expert user and you know what you are doing,
stri_enc_set should only be used if LC_CTYPE
category as given by Sys.getlocale.
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_info;
stri_enc_list; stri_enc_mark;
stringi-encoding