LaunchBar icon indicating copy to clipboard operation
LaunchBar copied to clipboard

UTF-8 Issue with Zotero action

Open emetselaar opened this issue 1 month ago • 0 comments

Thanks for the great actions. When starting the Zotero action it tries to read this

const prefsPathContent = File.readText(${profilesDir}/${profile}/prefs.js);

For some reason I got this error:

Error: The file “prefs.js” couldn’t be opened using text encoding Unicode (UTF-8). (line 1191).

I managed to find the prefs.js, opened and resaved it with UTF-8 encoding (in VSCode) and then it worked all fine. However, why the file was not correct UTF-8 I do not know.

Probably it is a Zotero issue and not an issue with the code of the action, but maybe there is a workaround in the code that could be made when this error is encountered.

emetselaar avatar May 12 '24 19:05 emetselaar