mdahirel / PCItemplate

RMarkdown template for preprints recommended by one of the Peer Communities In
https://peercommunityin.org/
7 stars 0 forks source link

UTF8 issue for bibliography.bib file #7

Open AQueff opened 3 years ago

AQueff commented 3 years ago

After removing the landscape pages, the next issue comes from the bibliographic file.

Error in Rstudio: Can't decode ill-formed UTF-8 octet sequence at C:\Users\a.queffelec\AppData\Local\Temp\par-612e5175656666656c6563\cache-fdb7483801244becd81fb01b3ab99423d7614d1b\inc\lib/File/Slurper.pm line 59. Erreur : Failed to build the bibliography via biber

My .bib comes from Zotero, is in UTF-8. When I open the recommendedpreprint.bib in TexMaker it says me that this file is not in UTF8 (prompt to open it with ISO-8859-1). And when I copy the content of my .bib in this recommendedpreprint.bib and save it with the name of my bibliographic file, it does not work either.

But in the preamble.tex I can see that the \usepackage[utf8]{inputenc} so the .bib in utf8 should work...

I tried different export from Zotero... nothing worked.

The only thing I can tell for help is that when I change in the YAML the "citation_package: biblatex" to "citation_package: natbib", there is no more error, and the pdf is done (of course without the bibliography ok). And there... since the pdf is full of problems (landscape, bibliography etc.) I stoped and went to Word and finally did it in Word!

I saw in the readme.rmd that the advice is to install the TinyTex but I am not sure how to do that, and how it will crush my previous Latex etc... so did not try it. Bye

mdahirel commented 3 years ago

Without a reproducible example, it will be difficult for me to ascertain the source of this error. Can you upload the smallest .bib file that causes the error on your machine, when nothing else is changed in the template?