Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何指定rmarkdown渲染站点编码?_Html_R_Character Encoding_Knitr_R Markdown - Fatal编程技术网

Html 如何指定rmarkdown渲染站点编码?

Html 如何指定rmarkdown渲染站点编码?,html,r,character-encoding,knitr,r-markdown,Html,R,Character Encoding,Knitr,R Markdown,从rmarkdown文件生成带有knit html的html文件时,我没有编码问题 但是,当我使用这个函数rmarkdown::render_site()时,我遇到了这个问题。即使我以这种方式指定编码选项: rmarkdown::render_site(encoding="utf-8") 例如,这个特殊的字符“è”变成了这个“è”相关:谢谢你的评论@Yihui,但是,这不起作用。在生成的html中,我可以读取标题:我重新安装了rmarkdown,现在出现了以下错误:错误:需要pandoc 1

从rmarkdown文件生成带有knit html的html文件时,我没有编码问题

但是,当我使用这个函数
rmarkdown::render_site()
时,我遇到了这个问题。即使我以这种方式指定编码选项:

rmarkdown::render_site(encoding="utf-8")

例如,这个特殊的字符“è”变成了这个“è”相关:谢谢你的评论@Yihui,但是,这不起作用。在生成的html中,我可以读取标题:我重新安装了rmarkdown,现在出现了以下错误:错误:需要pandoc 1.12.3或更高版本,但未找到(请参阅帮助页面?rmarkdown::pandoc_可用)。然后我找到了这个下载链接: