I'm working with a Rnw file in RStudio and knitr.

Everything works correctly so far, but I stumbled upon a problem when I included a chapter to the report that is written in German.

I wrote the German language section in Texmaker and all the German characters are displaying correctly. However when I tried to incorporate it into report using:


German characters are gone.

The character encoding in RStudio's options is specified as UTF-8.

What can be causing such behaviour?


1 Answer 1


Try putting




in your main file.


You must log in to answer this question.