cloudyr / limer

A LimeSurvey R Client
MIT License
67 stars 37 forks source link

fix for encoding in base64_to_df #44

Open andreasio opened 6 years ago

andreasio commented 6 years ago

With a simple "encoding" added, we can tell R to encode in UTF-8.

base64_to_df <- function(x) {
  raw_csv <- rawToChar(base64enc::base64decode(x))
  return(read.table(textConnection(raw_csv), stringsAsFactors = FALSE, header=TRUE,
                  sep = ";", encoding = "UTF-8" ))
}