ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin" <antu...@gmail.com>
Subject SQL task output encoding
Date Thu, 04 May 2006 14:27:49 GMT
Hello,

I'd like to know which encoding is used by the SQL task when outputing
to a file. I believe it is unicode but I need to be sure...

<sql> has an encoding attribute, but it is used when loading the script to run.

Reading the code, it seems that the output encoding cannot be set via
ant. Here is how the output is set:
out = new PrintStream(new BufferedOutputStream(
                     new FileOutputStream(output.getAbsolutePath(), append)));

This would mean that is uses the JVM default. On an other hand I read
somewhere that Java Reader and Writer always use Unicode by default.
And if I am not mistaking, the <sql> task uses a PrintStream which in
turn uses a Writer... Does this certify that the output will be
unicode?

Thanks,

Patrick Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message