Podpora :: RAR Support

2005-05-25 11:02:16
Tomas
Kodovani nazvu v zip souborech
Mam problemy s kodovanim nazvu souboru. Mam svuj zalohovaci sw, ktery pro pakovani do zipu pouziva knihovnu od www.xceedsoft.com, coz podle me nejsou zadni bridilove. Kdyz otevru vytvarene zipy ve Winzipu, Salamanderu nebo pouziju onu knihovnu, tak je kodovani v poradku. Kdyz je otevru winrarem nebo explorerem, tak je kodovani spatne. Xceedove mi moc nepomohli, poradi nekdo tady? Pri baleni pouzivam volbu, ktera ma provest "Store the UNICODE filename header".
2005-05-26 00:10:07
vmlich
Re: Kodovani nazvu v zip souborech
Podle autora RARu ZIP format nepodporuje unicode ani urceni pouzite kodove stranky. WinRAR zkousi zjistit kodovou stranku hueristicky, s vetsim nekdy mensim uspechem. Nasleduje plne zneni Roshalovy odpovedi:

Original ZIP format does not support Unicode and it does not define a code page to use in ASCII file names. This archive is not an exception. Maybe it stores Unicode names somewhere, but WinRAR and other ZIP compatible archivers read only ASCII names from it. Since ZIP code page is not strictly defined, WinRAR has to use some heuristics to detect it. Usually they work well, sometimes they fail. It is due to nature of ZIP format. Other archivers may fail to detect the correct encoding in other situations. Besides, when I tried to decompress this archive using the command line PKUNZIP 4.0, it failed to do it and reported that name is incorrect. And it is PKUNZIP, the tool designed by developers of ZIP format.