Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Re: ANT: charsets in replace-task

Brian Agnew

2008-05-12

Replies:

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.