Update import.Rmd (#218)

typo
This commit is contained in:
S'busiso Mkhondwane 2016-08-02 16:04:40 +02:00 committed by Hadley Wickham
parent 6f301c351b
commit 4402637b34
1 changed files with 1 additions and 1 deletions

View File

@ -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))