On 2009-10-05, agostonbejo <[email protected]> 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. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
