The guess encoding (guess_encoding) function from the readr package is quite nice.
https://stackoverflow.com/questions/4806823/how-to-detect-the-right-enc…
https://gist.github.com/hadley/837414