what is the encoding method of the attachment path in zotero sqlite database?
Hi,
I want to write a front-end of zotero with gtk+ interface, which will use the zotero database to display the personal documents, and get a problem now: if the attachment path's encoding is English(ascii), it is no problem; but if the encoding is Chinese (UTF-8), it is could not parse the path in sqlite3 client, just echo some strange characters. The attachment is a soft link of pdf file, and in the itemAttachments table, the charsetID is null.
So what is the encoding method of the attachment path?
I want to write a front-end of zotero with gtk+ interface, which will use the zotero database to display the personal documents, and get a problem now: if the attachment path's encoding is English(ascii), it is no problem; but if the encoding is Chinese (UTF-8), it is could not parse the path in sqlite3 client, just echo some strange characters. The attachment is a soft link of pdf file, and in the itemAttachments table, the charsetID is null.
So what is the encoding method of the attachment path?
I have used the gnotero project, and I do not think the project can do what I need.
but I could not understand what the code is doing.
And I have tested that the path saved in the sqlite db, is not utf8, nor utf16.
Could somebody kindly tell what is the meaning of the code (nsIFile.getRelativeDescriptor) ?