Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmarkdnown pdf document with special character produces encoding errors using R-IDE build command #17

Open
albertostefanelli opened this issue Oct 18, 2018 · 3 comments

Comments

@albertostefanelli
Copy link

albertostefanelli commented Oct 18, 2018

The problem appears on with macOS High Sierra 10.13.6 using the last version of R-IDE.
The problem disappears if i use rmarkdown::render(input = "report.Rmd", output_file = "report_native_render.pdf") from the console. Removing the encoding option in the render.py file of R-IDE as suggested by the maintainer of rmarkdown does not resolve the problem.

I attach a rmd and pdfs to reproduce the error.

report.zip

@randy3k
Copy link
Member

randy3k commented Oct 19, 2018

Could you try saving the file using utf8 encoding?

@albertostefanelli
Copy link
Author

Yes, same result.

@jokorn
Copy link
Contributor

jokorn commented Nov 25, 2019

I also had problems with encoding on a Mac. I added the following to a setup chunk in the beginning of the file:

suppressWarnings(invisible(Sys.setlocale("LC_ALL", "da_DK.UTF-8")))
# Necessary for Mac OSX because Hermes changes the locale to da_DK.
# Fails silently on windows where there is no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants