improve encoding for LaTeX table. #138
diff --git a/R/kable_styling.R b/R/kable_styling.R
index 5e4aff8..3d488fc 100644
--- a/R/kable_styling.R
+++ b/R/kable_styling.R
@@ -207,7 +207,8 @@
   repeat_header_method <- match.arg(repeat_header_method)
 
   out <- NULL
-  out <- enc2utf8(as.character(kable_input))
+  out <- solve_enc(kable_input)
+
   table_info <- magic_mirror(kable_input)
 
   if ("striped" %in% latex_options) {