Rmd can't Knit to PDF with Unicode error ^^V

I have tiny_tex and I did tinytex::install something...

It works when I knit to HTML.

I can Knit to PDF every time when I use Jupyter notebook.

! Package inputenc Error: Unicode character ^^V (U+0016)
(inputenc)                not set up for use with LaTeX.

Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex. See https://bookdown.org/yihui/rmarkdown-cookbook/latex-unicode.html
Error: LaTeX failed to compile a4.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See a4.log for more info.
Execution halted

Those error msgs are not immediately actionable for someone who just wanted a pdf and doesn't care about how it works under the hood.

I cannot release the Rmd file yet because it's the solution to a course project.

It seems you have a character that is not supported in LaTeX. What is the content of your file ?

Knitting to PDF require LaTeX and Unicode char can require to use another engine as said in the error message

Try other LaTeX engines instead (e.g., xelatex) if you are using pdflatex.

This is a matter of content inside your file and maybe with Jupyter Notebook you don't have the same content.

Do you have an example I could look into ?

Could it be related to this type of issue where you are trying to use ANSI escape characters ?

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.