Escaping in bibtex transform broken
Background
The escaping of non-ascii characters has changed, and a bug has been introduced that yields nonsensical escape patterns
Observed behavior
import requests
headers = {"accept": "application/x-bibtex"}
r = requests.get("http://dx.doi.org/10.1021/acs.jced.5b00684", headers = headers)
r.encoding = r.apparent_encoding
print(r.text)
yields
@article{Lemmon_2015,
doi = {10.1021/acs.jced.5b00684},
url = {https://doi.org/10.1021%2Facs.jced.5b00684},
year = 2015,
month = {nov},
publisher = {American Chemical Society ({ACS})},
volume = {60},
number = {12},
pages = {3745--3758},
author = {Eric W. Lemmon and Roland Span},
title = {Thermodynamic Properties of R-227ea, R-365mfc, R-115, and R-13I1},
journal = {Journal of Chemical {\&}amp$\mathsemicolon$ Engineering Data}
}
Expected behavior
I think the escape pattern was previously something like:
journal = {Journal of Chemical {\&} Engineering Data}
I had to grep out the escape, which was annoying but fine, but the new escape is wrong.
How urgent
Definition of ready
-
Product owner: -
Tech lead: -
Service:: label applied -
Definition of done updated -
Acceptance testing plan: -
Weight applied
Definition of done
-
Unit tests identified, implemented, and passing -
Code reviewed -
Available for acceptance testing via a staging URL, or otherwise -
Consider any impacts to current or future architecture/infrastructure, and update specifications and documentation as needed -
Knowledge base reviewed and updated -
Public documentation reviewed and updated -
Acceptance criteria met -
AC 1 -
AC 2
-
-
Acceptance testing passed -
Deployed to production