jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra" <tobias.bocane...@day.com>
Subject Re: General Packaging mechanism
Date Wed, 21 Feb 2007 14:03:33 GMT
> 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:

[tripod@sulu test]$ touch "到日本来.txt"
[tripod@sulu test]$ ll
total 0
-rw-rw-r-- 1 tripod tripod 0 Feb 21 14:44 到日本来.txt
[tripod@sulu test]$ cd ..
[tripod@sulu 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%)
[tripod@sulu jcr-car]$ jar tf test.jar
META-INF/
META-INF/MANIFEST.MF
test/
test/到日本来.txt


regards, toby
-- 
-----------------------------------------< tobias.bocanegra@day.com >---
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 >---

Mime
View raw message