From 961e5b955d68aa2c1bc815740a75f90d759761a2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 13 Oct 2022 02:20:12 -0400 Subject: [PATCH] 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 --- chrome/content/zotero/xpcom/fulltext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/fulltext.js b/chrome/content/zotero/xpcom/fulltext.js index f6ab7fff2c..83aee5d3ea 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -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'; } }