r - Package inputenc Error & Error: pandoc document conversion failed with error 43 -


i trying produce pdf file knitr in rstudio encountered problem. have read lot of solutions found on stack overflow , google not helpful. please me this? obliged!

the error shown below:

 output file: final_project.knit.md  "c:/users/johnl_~1/appdata/local/pandoc/pandoc" +rts -k512m -rts final_project.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output final_project.pdf --template "e:\r\r-3.2.3\library\rmarkdown\rmd\latex\default-1.15.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"  ! package inputenc error: unicode char 骞?(u+5e74) (inputenc)                not set use latex.  see inputenc package documentation explanation. type  h   immediate help.  ...                                                l.128 \maketitle  try running pandoc --latex-engine=xelatex. pandoc.exe: error producing pdf error: pandoc document conversion failed error 43 in addition: warning message: running command '"c:/users/johnl_~1/appdata/local/pandoc/pandoc" +rts -k512m -rts final_project.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output final_project.pdf --template "e:\r\r-3.2.3\library\rmarkdown\rmd\latex\default-1.15.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"' had status 43  execution halted 

specification:

  1. window 8.1 64
  2. rstudio version: 0.99.891 mozilla/5.0 (windows nt 6.2; wow64) applewebkit/538.1 (khtml, gecko) rstudio safari/538.1 qt/5.4.1
  3. miktex: version 2.9.5840 (basic)
  4. pandoc

others

i have tried solutions can find stack overflow , did not work. afraid solutions adding latex_engine: xelatex fail solve this.

could please me? lot!

best

i have figured out problem is, have choose windows-1252 text encoding.

if have set other types default, change @ tools> global options > code > saving, choose [ask] in default text encoding.

hope works you.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -