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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to