DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17539>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17539 CommonsHTTPSender will corrupt message data Summary: CommonsHTTPSender will corrupt message data Product: Axis Version: 1.1RC1 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Basic Architecture AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The CommonsHTTPSender invokes Message.writeTo() with a ByteArrayOutputStream. The Message class uses the UTF-8 encoding when writing its char data out as bytes. In the CommonsHTTPSender, however, those bytes are then converted back to a string using the VM's default encoding (environment dependent, generally not UTF-8) -- this will result in corrupt message data for characters with more than 7 bits. The fix would be to specify "UTF-8" as a second argument to the String constructor: method.setRequestBody(new String(baos.toByteArray(), "UTF-8"));
