bibtex icon indicating copy to clipboard operation
bibtex copied to clipboard

ASCII turned into non-ASCII

Open HeidiSeibold opened this issue 3 years ago • 3 comments

I have the following bib-file example.bib:

@Article{GirLeq2016_CSTM_EntropyBasedGOFTests,
  title = {Entropy-Based Goodness-of-Fit Tests -- a Unifying Framework. Application to DNA Replication},
  author = {Val{\'e}rie Girardin and Justine Lequesne},
  journal = {Communications in Statistics--Theory and Methods},
  pages = {62--74},
  volume = {48},
  number = {1},
  year = {2017},
  doi = {10.1080/03610926.2017.1401084},
  publisher = {Taylor \& Francis},
}

If I read this and want to proceed working with it, the bibtex-package turns my ASCII text into non-ASCII.

## no non-ASCII
tools::showNonASCII(readLines("example.bib"))

library("bibtex")
entry <- read.bib("example.bib")

## bibtex package turns Val{\'e}rie into Valérie
print(entry, style = "citation")

Is there a way to avoid that? Thanks!

HeidiSeibold avatar Sep 15 '20 08:09 HeidiSeibold