ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47382] Encoding attribute of loadproperties does not function correctly
Date Fri, 19 Jun 2009 13:56:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=47382


Oliver Deakin <oliver.deakin@googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #4 from Oliver Deakin <oliver.deakin@googlemail.com>  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.

Mime
View raw message