Brew and knit one PDF report split by variable with special characters (å æ ø) - encoding issue

不打扰是莪最后的温柔 提交于 2019-12-01 17:04:15

Since you are using UTF-8, which is not the native encoding of your OS, you need to explicitly tell knitr the encoding of your input document. For example, you have to call

knit2pdf(brew_out, encoding = "UTF-8")

But I'm not sure if brew can handle non-native character encodings. If not, I suggest you use your system default encoding (should be ISO8859-1 in this case), and

\usepackage[latin9]{inputenc}

Or do everything in knitr if you have to use UTF-8 (this also enables you to click the button to compile the document); see 075-knit-expand.Rnw for an example.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!