Skip to content

Commit

Permalink
fix #296 #280 run enc2native if not UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
daroczig committed Jan 21, 2019
1 parent a6b6b17 commit 71b4e99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/pandoc.R
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ pandoc.table.return <- function(t, caption, digits = panderOptions('digits'), de

## expands cells for output
table.expand <- function(cells, cols.width, justify, sep.cols) {
## fix encoding issue in C++ on Windows
if (l10n_info()$`UTF-8` == FALSE) {
cells <- enc2native(cells)
}
.Call('pander_tableExpand_cpp', PACKAGE = 'pander', cells, cols.width, justify, sep.cols, style)
}

Expand Down

0 comments on commit 71b4e99

Please sign in to comment.