Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 5444 invoked from network); 19 Jun 2009 13:56:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Jun 2009 13:56:41 -0000 Received: (qmail 484 invoked by uid 500); 19 Jun 2009 13:56:52 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 438 invoked by uid 500); 19 Jun 2009 13:56:52 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 429 invoked by uid 99); 19 Jun 2009 13:56:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 13:56:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jun 2009 13:56:49 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 0D81E234C1E7; Fri, 19 Jun 2009 06:56:27 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 47382] Encoding attribute of loadproperties does not function correctly X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: oliver.deakin@googlemail.com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: 1.8.0 X-Bugzilla-Changed-Fields: Status Resolution In-Reply-To: References: Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20090619135628.0D81E234C1E7@brutus.apache.org> Date: Fri, 19 Jun 2009 06:56:27 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=47382 Oliver Deakin changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #4 from Oliver Deakin 2009-06-19 06:56:27 PST --- Hi Stefan - thanks for looking at this so quickly! I just had a look at the change you made to call text.getBytes() without the encoding specified and Im pretty sure that will also fail. If an encoding is not specified, getBytes() defaults to converting from the default system encoding to the Java default encoding. So in my case calling text.getBytes() is the same as calling text.getBytes("IBM-1047"), and will still try and convert text again from EBCDIC->UTF-16. I think you need to explicitly specify that text is already in UTF-16 to getBytes i.e. text.getBytes("UTF-16"). (Im assuming that UTF-16 is the correct encoding here) That said, I havn't tested the change yet locally - does the test you added pass? -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.