Skip to content

non-standard letters in tableHTML #16

@clemens-zauchner

Description

@clemens-zauchner

If you have non-english letters in the tableHTML, it will not be displayed correctly. e.g.

data.frame(a = c("Büro", "γεια")) %>%
  tableHTML(rownames = FALSE)

the table would look like this:
screen shot 2017-12-15 at 11 31 40

You can fix it by specifying utf-8 as charset in a meta tag like this:
''

If you add it to the tableHTML string, the table is printed correctly:

data.frame(a = c("Büro", "γεια")) %>%
  tableHTML(rownames = FALSE) %>%
  paste0('<META HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">',
         .,
         collapse = "\n") %>%
  tableHTML:::print.tableHTML()

screen shot 2017-12-15 at 11 36 13

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions