Can you run an experiment as follows: 1. Create few files with known Hebrew names in your Windows XP machine. 2. Zip them in your Windows XP machine. 3. Unzip -l them in your Linux machine, and compare strings.
My guess is that Winzip encodes Hebrew filenames in a different way from the way expected by Linux zip. So when Linux zip unzips the filenames, they look different.
If this hypothesis is confirmed, try to play with locale environment variables to affect the encoding assumed by Linux zip.
Amir Hardon wrote:
I'm trying to extract a zip file with Hebrew file names that was created with winzip on a Windows XP machine.
It looks like there is an encoding problem, but a weird one.
Just for testing the encoding I listed the file names into a text file ('unzip -l > file.txt'), and tried it to convert to different encodings using iconv.
But iconv always failed(No matter which encoding I'm trying to use),
with the following message:
iconv: illegal input sequence at position 112
The first byte that supposed to be Hebrew is at position 112,
it's value is 0xEA which is "Kaf sofit" in iso-8859-8.
Anyway I just opened the text file with Mozilla and tried to view it using every Hebrew or Unicode encoding it supports, but none of them worked.
My last resort was to calculate the difference between the values of the letter I get and the letter it should be, the first two letters have the same difference (reduce two to get the original letter) but the third letter have a different one (add five to get the original letter).
That is strange!
(List's Hebrew haters, please forgive the next paragraph) Just for the record here is the string I get: "×××× Ö××× ××××" Which should be: "×××× ×××× ××××" (Both strings are in logical order)
So I have two questions: 1. (The simple one) What's the problem with iconv? 2. What can I do with the Hebrew filenames?
--- Omer My own blog is at http://www.livejournal.com/users/tddpirate/
My opinions, as expressed in this E-mail message, are mine alone. They do not represent the official policy of any organization with which I may be affiliated in any way. WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]