commit | d2c0f73e21c69c84a02de780cbdb5515e03baf1d | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu@hsl.harvard.edu> | Sat Aug 26 10:40:14 2017 -0400 |
committer | Hao Zhu <haozhu@hsl.harvard.edu> | Sat Aug 26 10:40:14 2017 -0400 |
tree | 934a8fb3d3dd4ef60a433f6c5668cffa9d0e61c8 | |
parent | f451dbb62cf72e16050fe39ea5ae99b3fd53a617 [diff] [blame] |
add enc2utf8 to solve unicode issue
diff --git a/R/row_spec.R b/R/row_spec.R index 060c27f..1d5d500 100644 --- a/R/row_spec.R +++ b/R/row_spec.R
@@ -114,7 +114,8 @@ new_row <- paste0("\\\\rowcolor{", background, "} ", new_row) } - out <- sub(target_row, new_row, as.character(kable_input), perl = T) + out <- sub(target_row, new_row, enc2utf8(as.character(kable_input)), + perl = T) out <- structure(out, format = "latex", class = "knitr_kable") attr(out, "kable_meta") <- table_info return(out)