Author: darran.lofthouse(a)jboss.com
Date: 2007-08-10 10:10:18 -0400 (Fri, 10 Aug 2007)
New Revision: 4317
Modified:
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java
Log:
Also try this
Modified:
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java
===================================================================
---
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java 2007-08-10
14:02:55 UTC (rev 4316)
+++
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/jaxrpc/binding/BufferedStreamSource.java 2007-08-10
14:10:18 UTC (rev 4317)
@@ -30,6 +30,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
+import java.io.UnsupportedEncodingException;
import javax.xml.transform.stream.StreamSource;
@@ -112,7 +113,16 @@
{
String retStr = null;
if (bytes != null)
- retStr = new String(bytes);
+ {
+ try
+ {
+ retStr = new String(bytes, "UTF-8");
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ WSException.rethrow(e);
+ }
+ }
else if (chars != null)
retStr = new String(chars);
return "" + retStr;
Show replies by date