translators icon indicating copy to clipboard operation
translators copied to clipboard

Zotero RDF: Encode special characters in file path

Open dstillman opened this issue 2 years ago • 3 comments

https://forums.zotero.org/discussion/101210/bug-zotero-wont-import-all-attachments-from-zotero-rdf-xml

# and other valid characters

We're properly importing, e.g., %23, but we export #, which then won't import.

dstillman avatar Nov 17 '22 22:11 dstillman

As far as I know we only export relative paths, which are valid URIs.

This doesn't seem to be the case. I tried exporting an item with a linked file attachment via Zotero RDF and got

<rdf:resource rdf:resource="/Users/abe/Desktop/ABC #1.pdf"/>

AbeJellinek avatar Nov 18 '22 16:11 AbeJellinek

Oh, but that's only if you uncheck Export Files. If you check it, you get a relative path.

AbeJellinek avatar Nov 18 '22 16:11 AbeJellinek

As a sidenote:

Oh, but that's only if you uncheck Export Files. If you check it, you get a relative path.

We do this somewhat inconsistently across several export translators

adam3smith avatar Nov 18 '22 19:11 adam3smith