Re: Tomcat 8 non-Latin filename war file deploy issue

2017-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

To whom it may concern,

On 6/4/17 11:38 AM, Desteny Child wrote:
> Hi,
> 
> On Linux(openSUSE) machine I'm trying to deploy on Tomcat 8
> application(war file) that contains a files with names with Unicode
> characters.
> 
> Inside of the war file the name looks like:
> 
> бжк-природний-1496336830201.xml
> 
> but after deploy the file looks like:
> 
> ???-?-1496336830201.xml
> 
> Also, with unzip (Linux console command) everything works
> fine(files are with a correct names).
> 
> How to tell Tomcat to properly deploy the file names with
> non-Latin characters and do not damage them ?

Is Tomcat expanding the deployment descriptor that way?

What is the default character encoding of the JVM when it launches?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJZNXHbAAoJEBzwKT+lPKRYDsMQAIfQNZiAWvfVyTiNbYt4z0z/
v+S0L8mr5gfcv0SHkGh+YaKn1Zez6LPalAa2c8JtJE2frfuPEI1+XnhOU+OjW/uG
GnAXFTHbjGrSb+RYIPZ59YhetoSPuIPnpwDZw5NgS4amnkE+8dThUzSs/KBEzSgT
rozn2CifQgFLk6W2z4hTfBtPry0sGegDEsCCah62LOlqKbieaqK+4BrX2Fy/4xvx
pTfO6FcsYkOD4dTQNYXFYEm+FkP7ZrY7FxGTpdZ15ertS4+26exWeI3n1cO5SrvN
Oj1nRPfUibuOBjvkpm0b1USApgNJ93U0OMtsdiLc0owZqkYQ1RiKjcByriKi3SE3
uRmwnLHi3LJX6AVZGVvjvLRfKAbVZcWuMsGKobUFheY1/92xTmQR9emXbz6KG+Hj
0hdCLkRgFxffQ4uL9rgmxDorIH0RO2KCUmbOrAjw0jMG8xkctN5GAr6DJLr4lEtt
ZiD/JyO0GMkAs+rHRFKkc3A6ZcDkj50bqZ/lOsaVwHyZHxKZ428FpT55Z/pUBEcJ
xKj/bg4sFsvP2IlVoC6wiNj3zDDx4mpcE4sevAGrXxhbjNd8WmuGe3WbVGTkfVOu
5OtlvkEZXiXiiq4K3mtkiQuGtp0j3p3cgcTQhoeF65kiqWRZ91jRiTw1LzrRejEh
H/jlTOTJNHlDNQRCUr7z
=1Ju8
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8 non-Latin filename war file deploy issue

2017-06-05 Thread Konstantin Kolinko
2017-06-04 18:38 GMT+03:00 Desteny Child :
> Hi,
>
> On Linux(openSUSE) machine I'm trying to deploy on Tomcat 8 application(war
> file) that contains a files with names with Unicode characters.
>
> Inside of the war file the name looks like:
>
> бжк-природний-1496336830201.xml
>
> but after deploy the file looks like:
>
> ???-?-1496336830201.xml
>
> Also, with unzip (Linux console command) everything works fine(files are
> with a correct names).

JAR and WAR file formats use UTF-8 encoding for file names

[UN]ZIP uses platform default encoding (and as such may be incompatible)

You need to use "jar" tool to pack or unpack the file.

http://docs.oracle.com/javase/8/docs/technotes/tools/unix/jar.html

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 8 non-Latin filename war file deploy issue

2017-06-04 Thread tomcat

On 04.06.2017 17:38, Desteny Child wrote:

Hi,

On Linux(openSUSE) machine I'm trying to deploy on Tomcat 8 application(war
file) that contains a files with names with Unicode characters.

Inside of the war file the name looks like:

бжк-природний-1496336830201.xml

but after deploy the file looks like:

???-?-1496336830201.xml

Also, with unzip (Linux console command) everything works fine(files are
with a correct names).

How to tell Tomcat to properly deploy the file names with non-Latin
characters and do not damage them ?



By curiosity :

When you run unzip (presumably in a console window), what is the "locale" of 
your process ?
And what is the locale of the Tomcat process, when it runs ?

(command to enter : locale, like
evm2:~# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
evm2:~#
)



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 8 non-Latin filename war file deploy issue

2017-06-04 Thread Desteny Child
Hi,

On Linux(openSUSE) machine I'm trying to deploy on Tomcat 8 application(war
file) that contains a files with names with Unicode characters.

Inside of the war file the name looks like:

бжк-природний-1496336830201.xml

but after deploy the file looks like:

???-?-1496336830201.xml

Also, with unzip (Linux console command) everything works fine(files are
with a correct names).

How to tell Tomcat to properly deploy the file names with non-Latin
characters and do not damage them ?

Thanks