This is a convenient way to override the current encoding of a string.
str_conv(string, encoding)
| string | String to re-encode. | 
|---|---|
| encoding | Name of encoding. See  | 
#> [1] "\xb1"str_conv(x, "ISO-8859-2") # Polish "a with ogonek"#> [1] "ą"str_conv(x, "ISO-8859-1") # Plus-minus#> [1] "±"