powered by
This is a convenient way to override the current encoding of a string.
str_conv(string, encoding)
String to re-encode.
Name of encoding. See stringi::stri_enc_list() for a complete list.
stringi::stri_enc_list()
# NOT RUN { # Example from encoding?stringi::stringi x <- rawToChar(as.raw(177)) x str_conv(x, "ISO-8859-2") # Polish "a with ogonek" str_conv(x, "ISO-8859-1") # Plus-minus # }
Run the code above in your browser using DataLab