parent
6f301c351b
commit
4402637b34
|
@ -266,7 +266,7 @@ parse_character(x1, locale = locale(encoding = "Latin1"))
|
||||||
parse_character(x2, locale = locale(encoding = "Shift-JIS"))
|
parse_character(x2, locale = locale(encoding = "Shift-JIS"))
|
||||||
```
|
```
|
||||||
|
|
||||||
How do you find the correct encoding? If you're lucky, it'll be included somewhere in the data documentation. Unfortunately, that's rarely the case, so readr provides `guess_encoding()` to help you figure it out. It's not foolproof, and it works better when you have lots of text (unlike here), but it's a reasonable place to start. Expect to try a fewdifferent encodings before you find the right one.
|
How do you find the correct encoding? If you're lucky, it'll be included somewhere in the data documentation. Unfortunately, that's rarely the case, so readr provides `guess_encoding()` to help you figure it out. It's not foolproof, and it works better when you have lots of text (unlike here), but it's a reasonable place to start. Expect to try a few different encodings before you find the right one.
|
||||||
|
|
||||||
```{r}
|
```{r}
|
||||||
guess_encoding(charToRaw(x1))
|
guess_encoding(charToRaw(x1))
|
||||||
|
|
Loading…
Reference in New Issue