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:
parent
81c6c8deff
commit
961e5b955d
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue