https://issues.apache.org/bugzilla/show_bug.cgi?id=47382


Oliver Deakin <[email protected]> changed:

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




--- Comment #4 from Oliver Deakin <[email protected]>  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.

Reply via email to