Errors of 'malformed UTF-8 character sequence at offset xxx'

ID: 1091966283

----
[JavaScript Error: "malformed UTF-8 character sequence at offset 11" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/NRYMGNAQ failed"]

[JavaScript Error: "Downloaded ZIP file not found for item 1/NRYMGNAQ" {file: "chrome://zotero/content/xpcom/storage/storageLocal.js" line: 774}]

[JavaScript Error: "Download request 1/MGLLTEQH failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 1" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/PBZ65IFV failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 2" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/RV44PJZK failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 10" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/IUCREPDS failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 10" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/TGGIEC2V failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 2" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/VNXQU4UC failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 1" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/WTP3IZIQ failed"]

[JavaScript Error: "Downloaded ZIP file not found for item 1/WTP3IZIQ" {file: "chrome://zotero/content/xpcom/storage/storageLocal.js" line: 774}]

[JavaScript Error: "Download request 1/U64J2AC5 failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 44" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/KD9S758W failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 67" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/RML2IX8L failed"]

[JavaScript Error: "malformed UTF-8 character sequence at offset 4" {file: "resource://gre/modules/osfile/osfile_unix_front.jsm" line: 750}]

[JavaScript Error: "Download request 1/ZU8UUVG5 failed"]

[JavaScript Error: "Downloaded ZIP file not found for item 1/ZU8UUVG5" {file: "chrome://zotero/content/xpcom/storage/storageLocal.js" line: 774}]

version => 5.0.85, platform => Linux x86_64, oscpu => Linux x86_64, locale => en-US, appName => Zotero, appVersion => 5.0.85, extensions => Zotero Storage Scanner (5.0.8, extension), ZotFile (5.0.16, extension), Better BibTex for Zotero (5.2.20, extension), Zotero LibreOffice Integration (5.0.22.SA.5.0.85, extension), Shockwave Flash (32.0.0.344, plugin)

----

I manually checked one of the folders:

In path 'storage/MGLLTEQH/', there is a file whose name is 'H'$'\374''e et al. - 2010 - Wave-front phase retrieval in transmission electro.pdf', but in the Zotero UI, the file name is shown as 'Hüe et al. - 2010 - Wave-front phase retrieval in transmission electro.pdf'.


  • It seems Zotero has made a mistake when storing file 'Hüe et al. - 2010 - Wave-front phase retrieval in transmission electro.pdf' to storage folder. The pdf file is saved as 'H'$'\374''e et al. - 2010 - Wave-front phase retrieval in transmission electro.pdf', which is not correct.
  • Note that Zotero's attachment titles and filenames can be independent. You see both of them in the right-hand attachment box, when the focus is on your pdf. I guess the title in the top row is shown as "Hüe et al.", but is the filename in the row that starts with "Filename:" also shown as "Hüe et al."?

    As a test, you could try to rename the pdf file in 'storage/MGLLTEQH/', e.g., to 'storage/MGLLTEQH/ABC.pdf'. If you then try to open the file in Zotero, you should get a Locate File dialog. Select 'ABC.pdf' and see if you can open the file from Zotero. If this works, right-click the pdf attachment in Zotero and use "Rename File from Parent Metadata". Do you get the same malformed filename?

    Some further questions that might help the Zotero developers with your issue:
    1) Did you install Zotero from https://www.zotero.org/download/ ?
    2) Can you reproduce the issue with ZotFile disabled?
  • See also dstillman's comments here:
    Something is preventing Zotero from being able to create filenames with extended characters (which were presumably created successfully on another computer). What distro is this? Is there anything unusual about your setup?
  • @qqbb Many thanks for the kind reply.

    After renaming the stored file, reopening it from zotero and navigating to the renamed file, the pdf is successfully opened. Afterwards, 'rename file from parent metadata' saves correct file: 'Hüe et al.' instead of 'H'$'\374''e et al.'.

    Further Information:
    1. I am using Archlinux, the zotero is installed from AUR package: https://aur.archlinux.org/packages/zotero/. This AUR package directly uses zotero links from 'https://www.zotero.org/download'
    2. My filesystem is ext4, encrypted.
    3. I am using my own webdav connecting to my NAS server. I ssh to my NAS server and checked the files in the webdav folder. In that folder, I deleted several corrupted zip files (zero or very small).
    4. I have 4000+ items in the library, it is very difficult to rename them one by one. I therefore deleted my storage folder and resynchronized the everything from my NAS server, and the problem solved.
Sign In or Register to comment.