• ZIP file names encoding

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #7506  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
 #7513  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.
 #7537  by pavila
 
Have your tried to create a JAR, rename it to ZIP and import this file?
 #7944  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.
 #8279  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.
 #8408  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.
Attachments
2.png
2.png (230.51 KiB) Viewed 5617 times
original.png
original.png (108.85 KiB) Viewed 5617 times
(3.03 KiB) Downloaded 227 times
 #8419  by jllort
 
Problems with that .zip because when I open with my ubuntu ( linux ) only appears ???? characters. And that's not normal.
 #8421  by treblereel
 
yeah, its a jar renamed to zip. Its because windows zip contains cd-1251 charset ... you can try -O option
 #8437  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.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.