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?
This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
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) ?