var items = ZoteroPane.getSelectedItems();for (let item of items) { if (!item.isAttachment()) continue; if (item.attachmentCharset != 'utf-8') { item.attachmentCharset = 'utf-8' await item.saveTx({ skipDateModifiedUpdate: true}) await Zotero.FullText.indexItems([item.id]) }}
Upload image file with the file dialog or by dragging and dropping images onto the dashed region
This will be fixed in Zotero 7.
For now, you can select the affected attachments and run this from Tools → Developer → Run JavaScript to reindex them properly:
var items = ZoteroPane.getSelectedItems();
for (let item of items) {
if (!item.isAttachment()) continue;
if (item.attachmentCharset != 'utf-8') {
item.attachmentCharset = 'utf-8'
await item.saveTx({ skipDateModifiedUpdate: true})
await Zotero.FullText.indexItems([item.id])
}
}