ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xose Ramon Sousa Vázquez <xrso...@optaresolutions.net>
Subject Re: Ant delete task with files with acutes and space
Date Wed, 09 Feb 2005 09:39:12 GMT
It works.
We have launched the application with another user and this user has 
other environment variables.
With the setting export LANG=es_ES@euro all works fine.
Schapitz, the steps that you perform in the email help us.

Thanks
Th. Schapitz wrote:

> The default encoding the jvm uses on *any* io (file, network or else) 
> is determined by the jvm property
> file.encoding.
>
> 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?
>
> Thomas
>
>
> 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_NUMERIC="es_ES.UTF-8"
>> LC_TIME="es_ES.UTF-8"
>> LC_COLLATE="es_ES.UTF-8"
>> LC_MONETARY="es_ES.UTF-8"
>> LC_MESSAGES="es_ES.UTF-8"
>> LC_PAPER="es_ES.UTF-8"
>> LC_NAME="es_ES.UTF-8"
>> LC_ADDRESS="es_ES.UTF-8"
>> LC_TELEPHONE="es_ES.UTF-8"
>> LC_MEASUREMENT="es_ES.UTF-8"
>> LC_IDENTIFICATION="es_ES.UTF-8"
>> LC_ALL=
>>
>>
>> Help is appreciated.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>> For additional commands, e-mail: dev-help@ant.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message