Non English Characters in Figure Caption

Hi, I'm having trouble with figure captions and couldn't find a solution on the web.

{r label, fig.cap="Çalışması"}
knitr::include_graphics()

Both in html and pdf output the caption is printed as "Çalismasi". So, ş becomes s, ı becomes i.
Any idea how can I solve this?

Edit:

Fixed it by creating an .Rprofile file

Sys.setlocale("LC_CTYPE", "turkish")
3 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.