Unrelated to that...:

> - use a standard format for the archive (i.e. zip/jar)

If you use ZIP/JAR as format, how are you going to handle non-ASCII
characters in filenames in a portable way?

all non-valid filesystem characters are escaped using url-escaping %xx
or %uXXXX. actually i haven't looked at how non-ascii characters are
handled in a jar file, but obviously it works, since i can include
such a file in a jar file:

[EMAIL PROTECTED] test]$ touch "到日本来.txt"
[EMAIL PROTECTED] test]$ ll
total 0
-rw-rw-r-- 1 tripod tripod 0 Feb 21 14:44 到日本来.txt
[EMAIL PROTECTED] test]$ cd ..
[EMAIL PROTECTED] jcr-car]$ jar cvf test.jar test/
added manifest
adding: test/(in = 0) (out= 0)(stored 0%)
adding: test/到日本来.txt(in = 0) (out= 0)(stored 0%)
[EMAIL PROTECTED] jcr-car]$ jar tf test.jar
META-INF/
META-INF/MANIFEST.MF
test/
test/到日本来.txt


regards, toby
--
-----------------------------------------< [EMAIL PROTECTED] >---
Tobias Bocanegra, Day Management AG, Barfuesserplatz 6, CH - 4001 Basel
T +41 61 226 98 98, F +41 61 226 98 97
-----------------------------------------------< http://www.day.com >---

Reply via email to