From 4402637b34575cf5fd980232bc73281a6c5fcfa0 Mon Sep 17 00:00:00 2001 From: S'busiso Mkhondwane Date: Tue, 2 Aug 2016 16:04:40 +0200 Subject: [PATCH] Update import.Rmd (#218) typo --- import.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))