improve encoding for LaTeX table. #138
diff --git a/R/collapse_rows.R b/R/collapse_rows.R
index 98a6ba2..8d42b71 100644
--- a/R/collapse_rows.R
+++ b/R/collapse_rows.R
@@ -117,7 +117,7 @@
                                 row_group_label_position, row_group_label_fonts,
                                 custom_latex_hline, headers_to_remove) {
   table_info <- magic_mirror(kable_input)
-  out <- enc2utf8(as.character(kable_input))
+  out <- solve_enc(kable_input)
 
   if (is.null(columns)) {
     columns <- seq(1, table_info$ncol)