Encoding of the "file" key in the output bib file?
Hi, there
i write a script to link Zotero with other programs, and i use the "file" key in the exported bib file, but when i read the bib file in python, i found that filenames contain " ̃" can not be identified correctly
for example
filename in the bib file is u"First discoveries of z ̃ 6 quasars with the Kilo-D.pdf"
and after encode it to Unicode, it's
"First discoveries of z \xcc\x83 6 quasars with the Kilo-D.pdf"
but filename got by glob.glob("./")(that's ls in python) is like
"Venemans et al. - 2015 - First discoveries of z \xcb\x9c 6 quasars with the Kilo-D.pdf"
so is it the encoding of the file that cause this differences?
i write a script to link Zotero with other programs, and i use the "file" key in the exported bib file, but when i read the bib file in python, i found that filenames contain " ̃" can not be identified correctly
for example
filename in the bib file is u"First discoveries of z ̃ 6 quasars with the Kilo-D.pdf"
and after encode it to Unicode, it's
"First discoveries of z \xcc\x83 6 quasars with the Kilo-D.pdf"
but filename got by glob.glob("./")(that's ls in python) is like
"Venemans et al. - 2015 - First discoveries of z \xcb\x9c 6 quasars with the Kilo-D.pdf"
so is it the encoding of the file that cause this differences?
-
emilianoeheynsYeah, non-ascii file names will do that. I think Zotfile has an option to make sure you have only ASCII names for attachments.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage