Page 1 of 1
File name encode while unzip files
PostPosted:Fri Mar 02, 2012 11:15 am
by vivimo
Hello
I have a little bit problem. When I upload files one by one and in file names are polish characters, everything is ok. But when I upload files in zip archive, server extract them without polish characters.
Any idea how to solve that?
Server is:
OpenKM 5.1.9
Windows 2008 Server
MySQL 5.5
Best Regards
Re: File name encode while unzip files
PostPosted:Mon Mar 05, 2012 3:13 pm
by pavila
ZIP archive format originally does not support UTF-8 encoding for file names. So depending on the program used, it write file names in different encoding formats. Please, attach a ZIP archive to test in my local installation.
Re: File name encode while unzip files
PostPosted:Mon Mar 05, 2012 3:31 pm
by vivimo
Here you go. I used 7-zip.
Thank You very much for interesting. It's very important for me.
Re: File name encode while unzip files
PostPosted:Tue Mar 06, 2012 8:37 am
by pavila
I have created a sample.zip using 7zip 9.20 from a Windows 7, using Cyrillic characters in filename and works fine. ZIP archive uploaded to the demo server and exploded.
Re: File name encode while unzip files
PostPosted:Tue Mar 06, 2012 10:04 am
by vivimo
As I can see, Cyrilic works but I use Latin alphabet with polish characters like ąśźćż ect. We figure out that OpenKM use old zip library without UTF-8, but since 2007 zip standard can official handle UTF-8 encode in filenames. Why is that?
Re: File name encode while unzip files
PostPosted:Wed Mar 07, 2012 12:50 pm
by pavila
I have imported this zip in the demo and works fine. This one contains files with Cyrilic and Polish characters.
Re: File name encode while unzip files
PostPosted:Thu Mar 08, 2012 9:56 am
by vivimo
WOW, whot did You use? 7zip? In my instalation also your archive works but mine not.
There is something wrong. When I upload your sample.zip it looks great but when I download it on my local computer, extract and again add to archive, polish characters doesn't came up. What the f...? I use 7-zip 9.20 x64 and Win 7 x64.
Re: File name encode while unzip files
PostPosted:Fri Mar 09, 2012 12:02 pm
by pavila
I use Win 7 32bits + 7-Zip 9.20