Page 1 of 1

Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 08:24
by Indy68
open a zip file with ziped files including characters like "öäü" in the filename, the filename is unpacked and viewed wrong (").

Michael,..,

Re: Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 08:29
by Jan Rysavy
Michael, it looks like file names are in incorrect character enconding.
How did you create this archive? When you open this archive using Windows Explorer, is it OK?

Re: Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 11:12
by KNUT
Indy68 wrote:open a zip file with ziped files including characters like "öäü" in the filename, the filename is unpacked and viewed wrong (")
I zipped some files, one filename contains a "ü". The results:
  1. zipped with AS = everything fine
  2. zipped with Winzip 9 = everything fine
  3. zipped with Compress-It = everything fine
  4. zipped with 7zip = everything fine
:)

Re: Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 11:49
by Jan Rysavy
Michael, please look at your regional settings in Windows:
http://www.altap.cz/salam_en/help/salam ... upport.htm
(Configure Regional and Language Options)

Re: Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 14:46
by Jan Patera
Indy68 wrote:open a zip file with ziped files including characters like "öäü" in the filename, the filename is unpacked and viewed wrong (").
Michael, could you provide us a sample .ZIP file that shows the problem?

RE: Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 19:52
by th.
I tried it and found the problem occurs when the Zip file is created with the Windows compressed folder function. See attached examples, one zipped with AS, one with Windows compressed folder.
When opened in Explorer, both files are shown correctly.

The Windows language option is set to German.

Re: Internal ZIP Tool not working with special characters

Posted: 04 May 2007, 20:17
by Jan Patera
th. wrote:I tried it and found the problem occurs when the Zip file is created with the Windows compressed folder function. See attached examples, one zipped with AS, one with Windows compressed folder.
When opened in Explorer, both files are shown correctly.
I think it is a bug of all the other tools around or Salamander is too smart. The file created with AS has Zip2.0/DOS as the creator while the one created by Windows has Zip2.0/Win32 as the creator. That's the only difference. File name is stored the same in both cases, with 0x81 for the umlaut 'u' character. While Salamander is smart enough to do the right code page conversion (OEM->ANSI) only in the DOS case, all the other tools assume the file name is always in OEM code page.

Re: Internal ZIP Tool not working with special characters

Posted: 05 May 2007, 00:12
by Petr Solin
I have tried to open these archives in WinZIP 11 and WinRAR 3.62. Archives seems to be OK in both apps, so we should patch this problem. Thanks for reporting this!

Re: Internal ZIP Tool not working with special characters

Posted: 20 Mar 2010, 09:50
by Jan Patera
Indy68 wrote:open a zip file with ziped files including characters like "öäü" in the filename, the filename is unpacked and viewed wrong (").
The same problem encountered here.
To summarize findings:
1) Always converts OEM -> ANSI:
WinZIP 11, 12
WinRAR 3.62
WinACE 2.69
7z 4.45, 4.60
2) Never converts OEM -> ANSI:
PKZIP 2.50
3) Is smart, decides on creator:
Altap Salamander (any version)
FAR

Re: Internal ZIP Tool not working with special characters

Posted: 30 Mar 2010, 19:35
by Jan Patera
Jan Patera wrote:I think it is a bug of all the other tools around or Salamander is too smart.
I slightly changed the condition when AS decides to convert filenames from OEM to ANSI codepage. Can I ask you (and all the other enthusiastic AS users around) to test support for accented characters in ZIP archives created by other (non-AS) tools in the upcoming AS 2.53 beta 2 (so that it gets well tested before the official release 2.53)?