ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: <filterchain> messing up accentuated characters
Date Mon, 05 Oct 2009 09:54:19 GMT
On 2009-10-05, agostonbejo <> wrote:

> I've come across this while trying to run some sql insert scripts with ant.
> These scripts are first fed to a <filterchain> with a single
> <expandproperties/> . The problem is that special characters such as ö, ä,
> é, etc. are converted to question marks both in the case of ISO-8859-1 and
> UTF-8 files.

> I've soon found out that the problem lies in <filterchain> itself! Even if I
> run it without any filter readers, it will mess up these characters, i.e.

This is because it thinks they are in a different encoding than they
actually are.  In order to fix this, you have to tell Ant about your
encoding explicitly - <copy> has an encoding attribute for this.

As a corrolary you can't filter files with different encoding in a
single copy task.


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

View raw message