stri_enc_set sets the encoding used to decode
strings internally (i.e. by R) marked as Native, see
stringi-encoding. 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.
stri_enc_info;
stri_enc_list; stringi-encoding