"\\usepackage[utf8]{inputenc}"
plus a comment on re-encoding texts
diff --git a/R/util.R b/R/util.R
index 5d53369..bfc2d36 100644
--- a/R/util.R
+++ b/R/util.R
@@ -113,6 +113,8 @@
"\\usepackage{threeparttable}",
"\\usepackage{threeparttablex}",
"\\usepackage[normalem]{ulem}",
+ "\\usepackage[normalem]{ulem}",
+ "\\usepackage[utf8]{inputenc}",
"\\usepackage{makecell}"
))
}
@@ -140,6 +142,7 @@
# Solve enc issue for LaTeX tables
solve_enc <- function(x) {
+ #may behave differently based on Sys.setlocale settings with respect to characters
enc2utf8(as.character(base::format(x, trim = TRUE, justify = 'none')))
}