View source: R/encoding_conversion.R
stri_enc_tonative | R Documentation |
Converts character strings with declared encodings to the current native encoding.
stri_enc_tonative(str)
str |
a character vector to be converted |
This function just calls stri_encode(str, NULL, NULL)
.
The current native encoding can be read with stri_enc_get
.
Character strings declared to be in bytes
encoding will fail here.
Note that if working in a UTF-8 environment,
resulting strings will be marked with UTF-8
and not native
, see stri_enc_mark
.
Returns a character vector.
Marek Gagolewski and other contributors
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, \Sexpr[results=rd]{tools:::Rd_expr_doi("10.18637/jss.v103.i02")}
Other encoding_conversion:
about_encoding
,
stri_enc_fromutf32()
,
stri_enc_toascii()
,
stri_enc_toutf32()
,
stri_enc_toutf8()
,
stri_encode()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.