You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Hilden <A....@iks-gmbh.com> on 2008/05/08 15:46:08 UTC
ANT: charsets in replace-task
Hello everybody,
I have a problem with charsets, by using the "replace-task" of Ant in the
Eclipse IDE.
After ant relaces a token (the value of the token comes from a
".properties-file") in an xml-file, where the charset "UTF-8" is used (<?xml
version="1.0" encoding="UTF-8"?>), some special characters (such as:
ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) are not
represented correctly and Eclipse is not able to show the content of this
file after the replacement.
I have already changed the charset of all concerning files to "UTF-8", but
it still doesn't work.
Is there a solution for this problem? maybe a way to tell the replace-task
of ant to use the UTF-8 charset.
Thank you,
Best Regards,
Arash
--
View this message in context: http://www.nabble.com/ANT%3A-charsets-in-replace-task-tp17125260p17125260.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ANT: charsets in replace-task
Posted by Brian Agnew <br...@oopsconsultancy.com>.
XMLTask will handle char replacements and character sets in XML.
Brian
Hilden wrote:
> Hello everybody,
>
> I have a problem with charsets, by using the "replace-task" of Ant in the
> Eclipse IDE.
> After ant relaces a token (the value of the token comes from a
> ".properties-file") in an xml-file, where the charset "UTF-8" is used (<?xml
> version="1.0" encoding="UTF-8"?>), some special characters (such as:
> ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) are not
> represented correctly and Eclipse is not able to show the content of this
> file after the replacement.
> I have already changed the charset of all concerning files to "UTF-8", but
> it still doesn't work.
>
> Is there a solution for this problem? maybe a way to tell the replace-task
> of ant to use the UTF-8 charset.
>
> Thank you,
>
> Best Regards,
>
> Arash
>
>
>
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
AW: ANT: charsets in replace-task
Posted by "Akhoundi, Arash" <A....@iks-gmbh.com>.
Thank you very much,
it works!
Arash Akhoundi
iks Gesellschaft für
Informations- und
Kommunikationssysteme mbH
Siemensstraße 27
40721 Hilden
Telefon 02103/5872-21
Telefax 02103/5872-58
E-Mail mailto:a.akhoundi@iks-gmbh.com
-----Ursprüngliche Nachricht-----
Von: Peter Reilly [mailto:peter.kitt.reilly@gmail.com]
Gesendet: Donnerstag, 8. Mai 2008 16:34
An: Ant Users List
Betreff: Re: ANT: charsets in replace-task
<replace encoding="utf-8" ....
Peter
On Thu, May 8, 2008 at 7:05 AM, Akhoundi, Arash <A....@iks-gmbh.com> wrote:
> Hi,
>
> I did this. But the main problem is not showing the file, because when I open the file through the explorer the content is shown.
>
> The main problem ist, that the special characters are replaced by some other charcters.
>
>
> For example:
>
> Original characters:
> ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ\
>
> After the replacement:
> èìòùÀÈÌÃ'ÙáÃ(c)ÃóúýÃ?ÉÃ?Ã"ÚÃ?âêÃ(R)ôûÂÊÎÃ"Ûãñ
> õÃÃ'ÕäëïöüÿÄËÃ?ÖÜŸçÇåÅðÃ?øØ
>
>
> Arash Akhoundi
>
> iks Gesellschaft für
> Informations- und
> Kommunikationssysteme mbH
> Siemensstraße 27
> 40721 Hilden
> Telefon 02103/5872-21
> Telefax 02103/5872-58
> E-Mail mailto:a.akhoundi@iks-gmbh.com
>
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Prashant Reddy [mailto:prashant@pramati.com]
> Gesendet: Donnerstag, 8. Mai 2008 15:54
> An: Ant Users List
> Betreff: Re: ANT: charsets in replace-task
>
> May be you have tell Eclipse to use UTF-8 encoding when showing the file in which ANT has replaced ?
>
>
> On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
>> Hello everybody,
>>
>> I have a problem with charsets, by using the "replace-task" of Ant in
>> the Eclipse IDE.
>> After ant relaces a token (the value of the token comes from a
>> ".properties-file") in an xml-file, where the charset "UTF-8" is used
>> (<?xml version="1.0" encoding="UTF-8"?>), some special characters (such as:
>> ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) are not
>> represented correctly and Eclipse is not able to show the content of
>> this file after the replacement.
>> I have already changed the charset of all concerning files to
>> "UTF-8", but it still doesn't work.
>>
>> Is there a solution for this problem? maybe a way to tell the
>> replace-task of ant to use the UTF-8 charset.
>>
>> Thank you,
>>
>> Best Regards,
>>
>> Arash
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
>
>
>
>
> ______________________________________________________________________
> __
>
> iks Gesellschaft für Informations- und Kommunikationssysteme mbH
> Siemensstrasse 27, 40721 Hilden, Amtsgericht Düsseldorf, HRB 45519
> Geschäftsführerin: Dipl.-Inf. Monika Stoll
> Prokuristen: Dipl.-Ing. (FH) Thomas Kondring & Hartwig Tödter
> ______________________________________________________________________
> __
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
> commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org
Re: ANT: charsets in replace-task
Posted by Peter Reilly <pe...@gmail.com>.
<replace encoding="utf-8" ....
Peter
On Thu, May 8, 2008 at 7:05 AM, Akhoundi, Arash <A....@iks-gmbh.com> wrote:
> Hi,
>
> I did this. But the main problem is not showing the file, because when I open the file through the explorer the content is shown.
>
> The main problem ist, that the special characters are replaced by some other charcters.
>
>
> For example:
>
> Original characters: ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ\
>
> After the replacement: èìòùÀÈÌÃ'ÙáÃ(c)ÃóúýÃ?ÉÃ?Ã"ÚÃ?âêÃ(R)ôûÂÊÎÃ"ÛãñõÃÃ'ÕäëïöüÿÄËÃ?ÖÜŸçÇåÅðÃ?øØ
>
>
> Arash Akhoundi
>
> iks Gesellschaft für
> Informations- und
> Kommunikationssysteme mbH
> Siemensstraße 27
> 40721 Hilden
> Telefon 02103/5872-21
> Telefax 02103/5872-58
> E-Mail mailto:a.akhoundi@iks-gmbh.com
>
>
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Prashant Reddy [mailto:prashant@pramati.com]
> Gesendet: Donnerstag, 8. Mai 2008 15:54
> An: Ant Users List
> Betreff: Re: ANT: charsets in replace-task
>
> May be you have tell Eclipse to use UTF-8 encoding when showing the file in which ANT has replaced ?
>
>
> On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
>> Hello everybody,
>>
>> I have a problem with charsets, by using the "replace-task" of Ant in
>> the Eclipse IDE.
>> After ant relaces a token (the value of the token comes from a
>> ".properties-file") in an xml-file, where the charset "UTF-8" is used
>> (<?xml version="1.0" encoding="UTF-8"?>), some special characters (such as:
>> ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) are not
>> represented correctly and Eclipse is not able to show the content of
>> this file after the replacement.
>> I have already changed the charset of all concerning files to "UTF-8",
>> but it still doesn't work.
>>
>> Is there a solution for this problem? maybe a way to tell the
>> replace-task of ant to use the UTF-8 charset.
>>
>> Thank you,
>>
>> Best Regards,
>>
>> Arash
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
> ________________________________________________________________________
>
> iks Gesellschaft für Informations- und Kommunikationssysteme mbH
> Siemensstrasse 27, 40721 Hilden, Amtsgericht Düsseldorf, HRB 45519
> Geschäftsführerin: Dipl.-Inf. Monika Stoll
> Prokuristen: Dipl.-Ing. (FH) Thomas Kondring & Hartwig Tödter
> ________________________________________________________________________
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
AW: ANT: charsets in replace-task
Posted by "Akhoundi, Arash" <A....@iks-gmbh.com>.
Hi,
I did this. But the main problem is not showing the file, because when I open the file through the explorer the content is shown.
The main problem ist, that the special characters are replaced by some other charcters.
For example:
Original characters: ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ\
After the replacement: èìòùÀÈÌÒÙáéÃóúýÃ?ÉÃ?ÓÚÃ?âêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÃ?ÖÜŸçÇåÅðÃ?øØ
Arash Akhoundi
iks Gesellschaft für
Informations- und
Kommunikationssysteme mbH
Siemensstraße 27
40721 Hilden
Telefon 02103/5872-21
Telefax 02103/5872-58
E-Mail mailto:a.akhoundi@iks-gmbh.com
-----Ursprüngliche Nachricht-----
Von: Prashant Reddy [mailto:prashant@pramati.com]
Gesendet: Donnerstag, 8. Mai 2008 15:54
An: Ant Users List
Betreff: Re: ANT: charsets in replace-task
May be you have tell Eclipse to use UTF-8 encoding when showing the file in which ANT has replaced ?
On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
> Hello everybody,
>
> I have a problem with charsets, by using the "replace-task" of Ant in
> the Eclipse IDE.
> After ant relaces a token (the value of the token comes from a
> ".properties-file") in an xml-file, where the charset "UTF-8" is used
> (<?xml version="1.0" encoding="UTF-8"?>), some special characters (such as:
> ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) are not
> represented correctly and Eclipse is not able to show the content of
> this file after the replacement.
> I have already changed the charset of all concerning files to "UTF-8",
> but it still doesn't work.
>
> Is there a solution for this problem? maybe a way to tell the
> replace-task of ant to use the UTF-8 charset.
>
> Thank you,
>
> Best Regards,
>
> Arash
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org
________________________________________________________________________
iks Gesellschaft für Informations- und Kommunikationssysteme mbH
Siemensstrasse 27, 40721 Hilden, Amtsgericht Düsseldorf, HRB 45519
Geschäftsführerin: Dipl.-Inf. Monika Stoll
Prokuristen: Dipl.-Ing. (FH) Thomas Kondring & Hartwig Tödter
________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: ANT: charsets in replace-task
Posted by Prashant Reddy <pr...@pramati.com>.
May be you have tell Eclipse to use UTF-8 encoding when showing the file
in which ANT has replaced ?
On Thu, 2008-05-08 at 06:46 -0700, Hilden wrote:
> Hello everybody,
>
> I have a problem with charsets, by using the "replace-task" of Ant in the
> Eclipse IDE.
> After ant relaces a token (the value of the token comes from a
> ".properties-file") in an xml-file, where the charset "UTF-8" is used (<?xml
> version="1.0" encoding="UTF-8"?>), some special characters (such as:
> ZàèìòùÀÈÌÒÙáéíóúýÁÉÍÓÚÝâêîôûÂÊÎÔÛãñõÃÑÕäëïöüÿÄËÏÖÜŸçÇåÅðÐøØ) are not
> represented correctly and Eclipse is not able to show the content of this
> file after the replacement.
> I have already changed the charset of all concerning files to "UTF-8", but
> it still doesn't work.
>
> Is there a solution for this problem? maybe a way to tell the replace-task
> of ant to use the UTF-8 charset.
>
> Thank you,
>
> Best Regards,
>
> Arash
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org