Re: U icode support for Cabinet SDK

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.



Relevant Pages

  • U icode support for Cabinet SDK
    ... I need to extract a CAB file programatically. ... contain unicode characters too. ... I found that FDI API's in Cabinet SDK ...
    (microsoft.public.vc.mfc)
  • Re: U icode support for Cabinet SDK
    ... I need to extract a CAB file programatically. ... contain unicode characters too. ... I found that FDI API's in Cabinet SDK ...
    (microsoft.public.vc.mfc)
  • Re: Cabwiz localized AppName
    ... I've got a problem when I try to make a cab file for an application. ... I want to name the application in Russian. ... Then I have saved inf file in Unicode and made cab file again. ... Perhaps a setup DLL. ...
    (microsoft.public.pocketpc.developer)
  • Cabwiz localized AppName
    ... I've got a problem when I try to make a cab file for an application. ... I want to name the application in Russian. ... application name in improper encoding. ... Then I have saved inf file in Unicode and made cab file again. ...
    (microsoft.public.pocketpc.developer)
  • Re: D8 will be in Unicode: What is unicode?
    ... Tiburon's Unicode support is going to solve Unicode's ... the underlying philosophy in the Unicode implementation in Tiburon is ... otherwise positively take any steps to actually support Unicode other ... mandatory Unicode personality switch of Char and String, ...
    (borland.public.delphi.non-technical)