I was trying to produce a PDF file with the knitr in RStudio but I encountered a problem. I have read a lot of solutions found on stack overflow and google but they are not very
I have figured out what the problem is, that you have to choose WINDOWS-1252 as your text encoding.
If you have set other types as default, change it at tools> global options > code > saving, choose [Ask] in the default text encoding.
Hope that works for you.