Skip to content

Commit

Permalink
Update import.Rmd (hadley#218)
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
sibusiso16 authored and hadley committed Aug 2, 2016
1 parent 6f301c3 commit 4402637
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion import.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4402637

Please sign in to comment.