str_conv

0th

Percentile

Specify the encoding of a string.

This is a convenient way to override the current encoding of a string.

Usage
str_conv(string, encoding)
Arguments
string

String to re-encode.

encoding

Name of encoding. See stringi::stri_enc_list() for a complete list.

Aliases
  • str_conv
Examples
# 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
# }
Documentation reproduced from package stringr, version 1.4.0, License: GPL-2 | file LICENSE

Community examples

Looks like there are no examples yet.