From 976017c5408cc599dbdc3c05e40c3532cc1ad188 Mon Sep 17 00:00:00 2001 From: Sebastian Jeworutzki Date: Fri, 9 Sep 2016 10:30:54 +0200 Subject: [PATCH] change default encoding to utf-8 --- R/read.R | 2 +- man/read.dta13.Rd | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/read.R b/R/read.R index 2f11a2c1..5ac0b9a9 100644 --- a/R/read.R +++ b/R/read.R @@ -111,7 +111,7 @@ #' @importFrom stats na.omit #' @export read.dta13 <- function(file, convert.factors = TRUE, generate.factors=FALSE, - encoding = localeToCharset()[1], fromEncoding=NULL, + encoding = "UTF-8", fromEncoding=NULL, convert.underscore = FALSE, missing.type = FALSE, convert.dates = TRUE, replace.strl = TRUE, add.rownames = FALSE, nonint.factors=FALSE) { diff --git a/man/read.dta13.Rd b/man/read.dta13.Rd index 1ed731df..c3e687e0 100644 --- a/man/read.dta13.Rd +++ b/man/read.dta13.Rd @@ -5,9 +5,9 @@ \title{Read Stata Binary Files} \usage{ read.dta13(file, convert.factors = TRUE, generate.factors = FALSE, - encoding = localeToCharset()[1], fromEncoding = NULL, - convert.underscore = FALSE, missing.type = FALSE, convert.dates = TRUE, - replace.strl = TRUE, add.rownames = FALSE, nonint.factors = FALSE) + encoding = "UTF-8", fromEncoding = NULL, convert.underscore = FALSE, + missing.type = FALSE, convert.dates = TRUE, replace.strl = TRUE, + add.rownames = FALSE, nonint.factors = FALSE) } \arguments{ \item{file}{\emph{character.} Path to the dta file you want to import.}