Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 25211 invoked from network); 4 May 2006 14:28:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 14:28:27 -0000 Received: (qmail 73997 invoked by uid 500); 4 May 2006 14:28:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 73881 invoked by uid 500); 4 May 2006 14:28:11 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 73849 invoked by uid 99); 4 May 2006 14:28:11 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 07:28:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of antuser@gmail.com designates 64.233.162.207 as permitted sender) Received: from [64.233.162.207] (HELO nz-out-0102.google.com) (64.233.162.207) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 May 2006 07:28:10 -0700 Received: by nz-out-0102.google.com with SMTP id n29so432969nzf for ; Thu, 04 May 2006 07:27:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KKY9CXY20Ix2kSOWTCuv+t8DPapibrbtkOAMhnlAboLGh62dwNiz2iglAOt+oRTJrOUSgVqtYQjyWiwqPx3xtfNsR2AJcJrNsGWuQ+UGcQe/Dl0sv//MbWlw/eIcKvLlfoSvSEpxN7wEKU8XinqdU4Fe/r3sKKKk6bizP9flee4= Received: by 10.65.155.4 with SMTP id h4mr491430qbo; Thu, 04 May 2006 07:27:49 -0700 (PDT) Received: by 10.65.93.8 with HTTP; Thu, 4 May 2006 07:27:49 -0700 (PDT) Message-ID: Date: Thu, 4 May 2006 16:27:49 +0200 From: "Patrick Martin" To: "Ant User" Subject: SQL task output encoding MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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... 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 =3D 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 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