-
Notifications
You must be signed in to change notification settings - Fork 24
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
Problems inserting bib-entries encoded in UTF-8 to PDF files #61
Comments
What happens if you print |
The output of
When I print In the meantime, I switched to the package |
What about |
Sorry @mwmclean I am been busy preparing field tript to Kenya and been there. Now I'm back. Here the output of my console: l10n_info()
|
Haha, are you on a recent version of Windows? There is beta support for UTF-8 in Windows 10 17133. Try following the instructions here and hopefully you see a checkbox that will allow you to enable UTF-8 and fix your problems. |
I found the checkbox and now it is checked. Otherwise, nothing else had changed |
* In single-byte locales, the gsub call in collapseF() can cause multi-byte chars to be converted to single-byte ones, so only perform when necesssary * collapseF only used when bib.style = 'authoryear' * Additionally, a period could be removed from the last initial in the first author's given name when first.inits = TRUE. This has been corrected. * Possibly affects #62, #61
Can you please install the latest version from GitHub and see if that helps |
I had to uncheck the UTF8 box in Windows because I was getting a warning message refered to "wrong charset" when starting PostgreSQL... |
Dear @mwmclean : I fear, I may be wasting your time in a problem without solution (sorry for that). I will be happy if this issue is solved but I already used a different alternative. The decision is in your hands now. About the las recommendation
What I'm wandering about
|
ObservationI guess I encountered the same problem, here is my example BibTeX file:
The dataset was extracted via str(RefManageR::ReadBib(bib_file))
.. .. ..$ :List of 5
.. .. .. ..$ given : chr [1:2] "Lenka" "Li"
.. .. .. ..$ family : chr "á"
.. .. .. ..$ role : NULL
.. .. .. ..$ email : NULL System
l10n_info()
$MBCS
[1] TRUE
$`UTF-8`
[1] TRUE
$`Latin-1`
[1] FALSE Thanks for your efforts and please let me know if I can contribute with further details. |
I am trying to generate a report of data from a database, including references as data sources. For convenience I use
print.BibEntry
to insert references from a bibtex file into a PDF. The reference is stored as biblio.bib and looks like:I write then a document in
markdown
(example.Rmd).Then I use
rmarkdown
to render the document:Unfortunately I am struggling with special characters. I tried many options but I cannot get rid of strange symbols produced by the printing function (seems to be better handled in the title of the article but not for authors and journal's name).
Is there a way to deal with this issue?
The text was updated successfully, but these errors were encountered: