limer icon indicating copy to clipboard operation
limer copied to clipboard

fix for encoding in base64_to_df

Open andreasio opened this issue 7 years ago • 0 comments

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" ))
}

andreasio avatar Jul 18 '18 13:07 andreasio