Fix #320 thanks @martinschmelzer
diff --git a/R/util.R b/R/util.R
index 790d949..23a4802 100644
--- a/R/util.R
+++ b/R/util.R
@@ -142,7 +142,9 @@
 # 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')))
+  out <- enc2utf8(as.character(base::format(x, trim = TRUE, justify = 'none')))
+  mostattributes(out) <- attributes(x)
+  return(out)
 }
 
 input_escape <- function(x, latex_align) {