Share

ziparchive

Tracker: Bugs

5 Unicode name of file added to zip is not displayed properly - ID: 1908045
Last Update: Attachment added ( nobody )

I tried to create a zip(say CZA) using CZipArchive object. I used
CZipArchive::AddNewFile(_T("假借字.doc")) to add 假借字.doc file to
CZA.

The doc file was added successfully, but on unzipping the above created
zip, the name of the doc was displayed as "???.doc"

Cause for above problem is "CP_ACP is used as first argument of
WideCharToMultiByte(...) in CZipArchive::WideToSingle(...) function".

I tried using CP_UTF8 in place of CP_ACP. Now the name of the document was
displayed as "å_+å_Yå--.doc". I am not sure of the exact reason, but I
guess it is the UTF-8 equivalent of "假借字"

Is there any way to get the unicoded name of the document on unzipping the
zip created by the API provided by ZipArchive.lib

e-mail: s_singh@persistent.co.in


Nobody/Anonymous ( nobody ) - 2008-03-05 14:14

5

Open

None

Nobody/Anonymous

Interface (example)

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
myZIP.zip zip created using ZipArchive.lib API call Download

Change ( 1 )

Field Old Value Date By
File Added 269191: myZIP.zip 2008-03-05 14:14 nobody