Package inputenc Error: Unicode char \u8 in RStudio

后端 未结 5 1069
死守一世寂寞
死守一世寂寞 2020-12-28 16:34

In RStudio, when i go for convert my Markdown file to PDF then it gives me the error:

output file: report.knit.md

! Package inputenc Error

5条回答
  •  没有蜡笔的小新
    2020-12-28 16:49

    I know I am a bit late for this, but I just had almost the same error (minus the pandoc part).

    The problem was that I copy pasted a sentence from wikipedia, which had a dash character which was not utf8 formatted. I replaced the dash and it worked.

    Latex fails (with an encoding error) to create a pdf if there are "special" characters in your document, like incorrect whitespace/newline characters, or characters with accents. An easy way to check copy-pasted text is to first paste it into a very basic text editor, like nedit.

提交回复
热议问题