Author: darran.lofthouse(a)jboss.com
Date: 2007-08-09 12:07:29 -0400 (Thu, 09 Aug 2007)
New Revision: 4303
Modified:
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/soap/XMLFragment.java
Log:
Try this as well.
Modified:
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/soap/XMLFragment.java
===================================================================
---
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/soap/XMLFragment.java 2007-08-09
15:58:00 UTC (rev 4302)
+++
stack/native/branches/dlofthouse/JBWS-1763/src/main/java/org/jboss/ws/core/soap/XMLFragment.java 2007-08-09
16:07:29 UTC (rev 4303)
@@ -30,6 +30,7 @@
import java.io.PrintWriter;
import java.io.Reader;
import java.io.StringWriter;
+import java.io.UnsupportedEncodingException;
import java.io.Writer;
import javax.xml.transform.Result;
@@ -80,7 +81,14 @@
public XMLFragment(String xmlString)
{
- source = new BufferedStreamSource(xmlString.getBytes());
+ try
+ {
+ source = new BufferedStreamSource(xmlString.getBytes("UTF-8"));
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ WSException.rethrow(e);
+ }
}
public XMLFragment(Result result)
Show replies by date