Author: darran.lofthouse(a)jboss.com
Date: 2007-08-10 10:02:55 -0400 (Fri, 10 Aug 2007)
New Revision: 4316
Modified:
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/binding/BufferedStreamResult.java
Log:
Try this
Modified:
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/binding/BufferedStreamResult.java
===================================================================
---
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/binding/BufferedStreamResult.java 2007-08-10
13:35:56 UTC (rev 4315)
+++
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/binding/BufferedStreamResult.java 2007-08-10
14:02:55 UTC (rev 4316)
@@ -27,6 +27,7 @@
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
+import java.io.UnsupportedEncodingException;
import java.io.Writer;
import javax.xml.transform.stream.StreamResult;
@@ -85,6 +86,16 @@
public String toString()
{
- return baos.toString();
+ String result = null;
+ try
+ {
+ result = baos.toString("UTF-8");
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ WSException.rethrow(e);
+ }
+
+ return result;
}
}