stri_enc_set: Set or Get Default Character Encoding in 'stringi'

Description Usage Arguments Details Value See Also

Description

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.

Usage

1
2
3

Arguments

enc

single string; character encoding name, see stri_enc_list for the list of supported encodings.

Details

stri_enc_get is the same as stri_enc_info(NULL)$Name.friendly.

Note that changing the default encoding may have undesired consequences.

Value

stri_enc_set returns a string with previously used character encoding, invisibly.

stri_enc_get returns a string with current default character encoding.

See Also

Other encoding_management: stri_enc_info; stri_enc_list; stringi-encoding


stringi documentation built on May 2, 2019, 4:54 p.m.