Closed beierman closed 7 years ago
Not sure if this will be useful to anyone, but I was running into a similar issue and so manually encoded the string as utf8
with open(outfile,'w') as bibtex_file:
bibtex_str = bibtexparser.dumps(bibdb)
bibtex_file.write(bibtex_str.encode('utf8'))
And that worked without any issues.
@Phyks Did you check the status of this issue on master?
I'm having trouble writing the bibtex file (containing unicode) below. I assume the unicode characters fail to write because
bibtexparser
wants to write ascii, which would work if the unicode would be substituted by the respective latex string. So how do I enforce unicode-to-latex conversion? The correct conversion seems to be inlatexenc.py
:("\u2009", "\\hspace{0.167em}"),
, but it does not seem to get applied.Thanks
This code
causes this error
on this bibtex file