From 3582405f55fd69d362a88ab2de585cd6f0bbdc76 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 12 Oct 2022 05:00:30 -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 d7da2b2743..e55ccf9e5b 100644 --- a/chrome/content/zotero/xpcom/fulltext.js +++ b/chrome/content/zotero/xpcom/fulltext.js @@ -381,8 +381,8 @@ Zotero.Fulltext = Zotero.FullText = new function(){ } if (!charset) { - Zotero.logError(`Item ${itemID} didn't have a charset`); - return false; + Zotero.debug(`Item ${itemID} doesn't have a charset set -- using 'utf-8'`); + charset = 'utf-8'; } var maxLength = Zotero.Prefs.get('fulltext.textMaxLength');