ropensci / bib2df

Parse a BibTeX file to a tibble
https://docs.ropensci.org/bib2df
99 stars 22 forks source link

Add option to change encoding assumed for input strings (UTF-8) #43

Open nilsreimer opened 3 years ago

nilsreimer commented 3 years ago

I use UTF-8 characters in a bibliography, which bib2df doesn't seem to import properly. A way to fix this issue is to add an additional argument to the bib2df function that allows users to specify the encoding of the .bib file (default: encoding = "unknown"), and to feed that argument to the readLines call inside the bib2df_read function. This way I could import the bibliography with bib2df("references.bib", encoding = "UTF-8").

I'd be happy to make a pull request. Thanks for this useful package!