ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 47382] Encoding attribute of loadproperties does not function correctly
Date Fri, 19 Jun 2009 13:56:27 GMT

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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message