R/encoding.R
native_encode.Rd
Apply enc2native()
to the character vector, and check if enc2utf8()
can
convert it back without a loss. If it does, return enc2native(x)
, otherwise
return the original vector with a warning.
native_encode(x)
On platforms that supports UTF-8 as the native encoding
(l10n_info()
[['UTF-8']]
returns TRUE
), the conversion will be
skipped.