I have a Encoding Problem in KNIME.
Following code works perfectly in RStudio, the symbol ° is printed out correctly.
library(grid)
library(gridBase)
library(gridExtra)
library(ggplot2)
fn <- "C:/Temp/textR.pdf"
pdf(file=fn)
df <- data.frame("crit °C", 1)
g1 <- tableGrob(format(df, core.just="left"))
grid.arrange(g1, ncol = 1)
dev.off()
I want to use this code in an R Snippet in KNIME, unfortunately it won´t work there, instead of "°" I get "°".
What i already tried:
- setting Preferences to UTF-8 in KNIME ->Preferences->General->Workspace
- https://tech.knime.org/forum/knime-textprocessing/problems-exporting-utf-8-csv-writer
- use ggsave
- use Pdf Cairo instead (solution from using Unicode 'dingbat-like' glyphs in R graphics, across devices & platforms, especially PDF) but i am not sure if I had the family package installed...
Can anyone help me? I am using KNIME 3.1.1 and R_3_2_1