Internal ZIP Tool not working with special characters

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
Indy68

Internal ZIP Tool not working with special characters

Post by Indy68 » 04 May 2007, 08:24

open a zip file with ziped files including characters like "öäü" in the filename, the filename is unpacked and viewed wrong (").

Michael,..,
Attachments
Altap_bug.jpg
Altap_bug.jpg (262.76 KiB) Viewed 9494 times

Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5126
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Jan Rysavy » 04 May 2007, 08:29

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?

User avatar
KNUT
Posts: 286
Joined: 12 Dec 2005, 09:57
Location: Hamburg, Germany

Re: Internal ZIP Tool not working with special characters

Post by KNUT » 04 May 2007, 11:12

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
:)
Kind regards, KNUT
_____________________________________________
Satisfied Servant Salamander User from Version 1.5 till now

Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5126
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Jan Rysavy » 04 May 2007, 11:49

Michael, please look at your regional settings in Windows:
http://www.altap.cz/salam_en/help/salam ... upport.htm
(Configure Regional and Language Options)

Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Jan Patera » 04 May 2007, 14:46

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?

User avatar
th.
Posts: 116
Joined: 04 Sep 2006, 23:09
Location: Germany

RE: Internal ZIP Tool not working with special characters

Post by th. » 04 May 2007, 19:52

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.
Attachments
Zip AS.zip
(137 Bytes) Downloaded 481 times
Zip Windows.zip
(137 Bytes) Downloaded 436 times
ZipProblem.jpg
ZipProblem.jpg (11.21 KiB) Viewed 9456 times
ZipOK.jpg
ZipOK.jpg (10.07 KiB) Viewed 9456 times

Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Jan Patera » 04 May 2007, 20:17

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.

Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1105
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Petr Solin » 05 May 2007, 00:12

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!

Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Jan Patera » 20 Mar 2010, 09:50

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

Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: Internal ZIP Tool not working with special characters

Post by Jan Patera » 30 Mar 2010, 19:35

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)?

Post Reply