diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js index 7b7621973..fdf8157cd 100644 --- a/chrome/content/zotero/xpcom/file.js +++ b/chrome/content/zotero/xpcom/file.js @@ -209,7 +209,7 @@ Zotero.File = new function(){ } var options = { - charset: charset ? Zotero.CharacterSets.getName(charset) : "UTF-8", + charset: charset ? charset : "UTF-8", // This doesn't seem to work -- reading an image file still throws NS_ERROR_ILLEGAL_INPUT replacement: "\uFFFD" };