I have two questions about CkZip. Anyone gives a clue will be appreciated.
Problem 1: When I tried to append files with Simplified Chinese filename or Japanese filename, the files appended to the final zip file, can NOT keep correct filenames. I tried 4 text files to zip. Their names are in English, Japanese, traditional Chinese and simplified Chinese respectively.
But after zipping their filenames become the followings:
It shows only the English and traditional Chinese filenames keeps correctly, all Japanese characters are missed and two simplified Chinese characters are missed. I’d love to know the reason and how to fix it. My code is like this:
CkZipW objZip; objZip.UnlockComponent(L”OurLicensecode”); objZip.NewZip((const wchar_t*)wFINALZIP); … objZip.AppendFiles(wPathFileToZip, true); … objZip.WriteZipAndClose();
I tried to zip several files including an already zipped file into a new zip file and set a password to it. I’m using
… objZip.SetPassword(wpwd); objZip.put_PasswordProtect(true); … objZip.AppendFiles(wTxtToZip, true); objZip.AppendZip(Azippedfile); … objZip.WriteZipAndClose(); …
But I found that with objZip.AppendZip(Azippedfile), the password is no longer set to the zip file. It works fine without it. I would love to know a solution to set a password to the zip file in this situation.
Thank anybody who would help very much in advance!
Turn on verbose logging by setting the VerboseLogging property = true, and then post the LastErrorText's for both the AppendFiles method call and the WriteZipAndClose method call.