diff --git a/import.Rmd b/import.Rmd index 14569f1..9229ff5 100644 --- a/import.Rmd +++ b/import.Rmd @@ -266,7 +266,7 @@ parse_character(x1, locale = locale(encoding = "Latin1")) 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} guess_encoding(charToRaw(x1))