improve encoding for LaTeX table. #138
diff --git a/R/column_spec.R b/R/column_spec.R
index bdd8b2b..21eb99c 100644
--- a/R/column_spec.R
+++ b/R/column_spec.R
@@ -178,7 +178,7 @@
   kable_align_new <- paste(table_info$align_vector, collapse = align_collapse)
 
   out <- sub(kable_align_old, kable_align_new,
-             enc2utf8(as.character(kable_input)),
+             solve_enc(kable_input),
              perl = T)
   out <- structure(out, format = "latex", class = "knitr_kable")
   if (!is.null(width)) {