Re: U icode support for Cabinet SDK
- From: "Mihai N." <nmihai_year_2000@xxxxxxxxx>
- Date: Sat, 01 Jul 2006 01:41:18 -0700
I need to extract a CAB file programatically. The CAB file's name may
contain unicode characters too. We are planning to use Cabinet SDK to
perform the extraction.
While going through the MSDN, I found that FDI API's in Cabinet SDK
dont support unicode.
All those functions take file name as (char *).
How could I extract a CAB file, whose name may contain unicode
characters?
The files names inside the cab use code pages. The cab file format does not
support unicode. And the msi databases do not support unicode:
http://blogs.msdn.com/michkap/archive/2005/10/08/478479.aspx
http://blogs.msdn.com/heaths/archive/2005/10/05/477577.aspx
"Unofficially, MSI databases do support UTF-7 and UTF-8 by specifying code
pages 65000 and 65001, respectively"
Maybe the msi databases do support utf-8, but the MS tools used to create msi
files do not. And neither does InstallShield.
For the .cab file itself, SetupIterateCabinet takes a PCTSTR CabinetFile, so
it seems Unicode is ok (I have not tried it though).
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.
- Follow-Ups:
- Re: U icode support for Cabinet SDK
- From: Karthik
- Re: U icode support for Cabinet SDK
- From: Karthik
- Re: U icode support for Cabinet SDK
- From: Karthik
- Re: U icode support for Cabinet SDK
- Prev by Date: Re: getdlgitemtext
- Next by Date: Re: OnNewDocument,
- Previous by thread: issue with dialog
- Next by thread: Re: U icode support for Cabinet SDK
- Index(es):
Relevant Pages
|