ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Myriam Delperier" <>
Subject ant and utf-8
Date Tue, 02 Sep 2003 07:13:17 GMT
i've written a class which implements BuildLogger.
I'd like to have my log messages written in UTF-8 but i don't know how to do

I can't write this :
public void setOutputPrintStream(PrintStream output) {

 try {

this.out = new PrintStream(output, true, "UTF-8");

} catch (UnsupportedEncodingException e) {

this.out = new PrintStream(output, true);


because it only works with java 1.4...

i've tried to add this in my scritps : -Dfile.encoding=UTF-8 but it doesn't
work ...
ant it has to work on each OS
if somebody can help me

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message