Default to UTF-8 when indexing text file without detected charset

https://forums.zotero.org/discussion/94637/indexing-of-markdown-plain-text-attachments-with-md-extension
This commit is contained in:
Dan Stillman 2022-10-13 02:20:12 -04:00
parent 81c6c8deff
commit 961e5b955d

View file

@ -567,8 +567,8 @@ Zotero.Fulltext = Zotero.FullText = new function(){
}
if (!charset) {
Zotero.logError(`Could not detect character set for ${item.libraryKey} -- skipping indexing`);
return false;
Zotero.debug(`Couldn't detect character set for ${item.libraryKey} -- using UTF-8`);
charset = 'utf-8';
}
}