Page 2 of 2
Re: ZIP file names encoding
PostPosted:Tue Dec 14, 2010 12:48 pm
by treblereel
i mean to add something like option for unzip in openkm(is it a java.util.zip ?), todo iconv after unpacking.
I can pay for this job
ok, maybe you know way to create utf8 zip under windows ...
[root@zip]# unzip -Z1 Новая\ папка2.zip | iconv -f cp1252 -t cp850 | iconv -f cp866
Новая папка/
Новая папка/folder/
Новая папка/folder/file.doc
Новая папка/folder/file2.doc
Новая папка/Новая папка/
Новая папка/Новая папка (2)/
Новая папка/Новая папка (2)/document
Новая папка/Новая папка (2)/Текстовый документ.txt
Новая папка/Новая папка/nextstep.doc
Новая папка/Новая папка/Документ Microsoft Word (2).doc
Новая папка/Новая папка/Документ Microsoft Word.doc
Re: ZIP file names encoding
PostPosted:Tue Dec 14, 2010 5:22 pm
by rutrd
Hello!
I join this question. There's a similar complication with zipped russian filenames in my system.
Host: Debian linux, charset UTF-8, client: Windows XP.
Re: ZIP file names encoding
PostPosted:Wed Dec 15, 2010 12:10 pm
by pavila
Have your tried to create a JAR, rename it to ZIP and import this file?
Re: ZIP file names encoding
PostPosted:Wed Jan 12, 2011 11:00 am
by rutrd
I created a .jar archive with IzArc tool and renamed it to .zip:
1.zip:
1/файл.txt
1/папка/файл2.txt
1/папка/файл3.txt
After uploading, OpenKM extracted all compressed files breaking initial folder hierarchy. Filename encoding problem remained.
Re: ZIP file names encoding
PostPosted:Thu Jan 20, 2011 9:44 pm
by pavila
Java JDK alredy have a command line tool t create jars. It's name is "jar". Please, test with this tool and share the result with us. If this does not work I will need to add special support for jar files in the OpenKM source code.
Re: ZIP file names encoding
PostPosted:Tue Jan 25, 2011 2:50 pm
by treblereel
i have create folder "тест" with subfolders Новая папка,Новая папка2,Новая папка3 and put files like Новый текстовый документ[1-2].txt to each subfolder.(orogonal.png). After this i have create jar file using jar utility from jdk.(check attach) After upload i have get wrong charset. (2.png)
ps.Windows 7 x64 rus
Thanks.
Re: ZIP file names encoding
PostPosted:Wed Jan 26, 2011 7:47 am
by jllort
Problems with that .zip because when I open with my ubuntu ( linux ) only appears ???? characters. And that's not normal.
Re: ZIP file names encoding
PostPosted:Wed Jan 26, 2011 8:13 am
by treblereel
yeah, its a jar renamed to zip. Its because windows zip contains cd-1251 charset ... you can try -O option
Re: ZIP file names encoding
PostPosted:Thu Jan 27, 2011 9:33 am
by jllort
There's some problem how jar / zip is created sure. Because in my linux I've oppened zip files from japan, etc.. without major problems and without needing any special param. If you've got the possibility to have some computer with linux, I suggest you try creating zip document there and you'll observate that all runs right. The problem is in the way how you create the zip file.