fix special characters in citation field

This commit is contained in:
Oleg Zharkov
2020-02-13 16:34:20 +01:00
parent b37e8d5e6b
commit 055aca1cb9
+1 -1
View File
@@ -47,7 +47,7 @@ class DoiCache(object):
doi_url = "https://doi.org/" + doi
headers = {'Accept': 'text/bibliography; style=bibtex, application/x-bibtex'}
req = requests.get(doi_url, headers=headers)
return req.text
return req.content.decode("utf-8")
def get_bibtex(self, doi):
createfunc = functools.partial(self._raw_get_bibtex, doi)