ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Th. Schapitz" <>
Subject Re: Ant delete task with files with acutes and space
Date Tue, 08 Feb 2005 22:42:54 GMT
The default encoding the jvm uses on *any* io (file, network or else) is 
determined by the jvm property

You can do several things:

a.) check the setting in effect, by using the Echoproperties task, to 
find out the current setting in effect.
b.) enforce a certain setting, e.g. by using ant ... 
-Dfile.encoding=UTF-8 .... **
c.) selecting the proper encoding in a XML PI <?xml version="1.0" 
encoding="..."?>, like DD suggested,
 might help too, but I'm not sure about that.

d.) Anyway, what is really important, is: make sure, that the encoding 
used by your editor in fact matches
the one given in a.) or b.) (or c.))

Dominique: AFAIK, it is a matter of the XML-Parsers setup, whether it 
honors processing instructions or not..
Are you aware whether this was done?


Xose Ramon Sousa Vázquez schrieb:

> I have a problem with special characters in the name of my files. We 
> use names with some characters like acutes ( á é í ó ú ) and spaces 
> and Ç for example. I am using ant into a cruisecontrol process to 
> clean the build directory.
> For example:
>  I have tried to delete a file in Linux with its filename='Recepción 
> fax.xml'
> I have tried with several options, like putting several locale 
> configuration in the machine and also passing this configuration in a 
> parameter to the ant.
> ant -v -Duser.language=es -Duser.region=ES -buildfile cc-build.xml
> %locale
> LANG=es_ES.UTF-8
> LC_CTYPE="es_ES.UTF-8"
> LC_TIME="es_ES.UTF-8"
> LC_PAPER="es_ES.UTF-8"
> LC_NAME="es_ES.UTF-8"
> Help is appreciated.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message