3
I am preparing slides in R, but the Latin characters (ç, ã, é etc...) get corrupted when the presentation is compiled. I tried both with slidify and with Rpre, same problem. Someone knows how to solve?
Editing: If you are inside the same section, in R studio, click on:
file> "save with encoding" > UTF8
this solves the problems when it comes to visualizing. But a new problem arises:
After saving, when I restart a new section of Rstudio and reopen the file the source code appears all 'corrupted' (ex: "attention" turns : "attention§"). However the compiled version remains correct ("attention").
I tried again to use "save with encoding", to continue editing the text, but then it erodes the visalization (compiled version) of the previous text.
Does anyone have any idea how to fix this?
Systema: Windows 8.1 64bits, R version 3.1.1, Rstudio 0.98.1017
if Voce save with utf8 encoding does not work?
– Lucas Virgili
Yeah, in Rstudio, when I save a Markdown file it asks this encoding question and when I compile it is right. But when and create the R Presentation it does not ask that. How would you set the encoding
– LucasMation
when there is some wrong code in the presentation this error also appears to me
– Daniel Falbel
Windows or Linux? I think it’s OS problem... I have these problems in Windows, but not in linux.
– Manoel Galdino
windows, edited above
– LucasMation
The default of Windows is usually latin1 (iso 8859-1) tries to warn with this encoding instead of utf-8. You are probably saving with utf-8 and then opening in latin1 (which is the default) so the strange characters appear.
– Carlos Cinelli