axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r518831 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
Date Fri, 16 Mar 2007 01:46:01 GMT
Author: dims
Date: Thu Mar 15 18:46:00 2007
New Revision: 518831

URL: http://svn.apache.org/viewvc?view=rev&rev=518831
Log:
Fix for AXIS2-2318 - transport.http.ListingAgent: i18n problem in case of a non-English default
encoding

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java?view=diff&rev=518831&r1=518830&r2=518831
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/ListingAgent.java
Thu Mar 15 18:46:00 2007
@@ -46,6 +46,7 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
+import java.io.OutputStreamWriter;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.Iterator;
@@ -244,7 +245,7 @@
                                 (XmlSchema) schemaMappingtable.get(xsds);
                         if (schema != null) {
                             //schema is there - pump it outs
-                            schema.write(out);
+                            schema.write(new OutputStreamWriter(out, "UTF8"));
                             out.flush();
                             out.close();
                         } else {
@@ -269,7 +270,7 @@
                     } else {
                         XmlSchema schema = axisService.getSchema(0);
                         if (schema != null) {
-                            schema.write(out);
+                            schema.write(new OutputStreamWriter(out, "UTF8"));
                             out.flush();
                             out.close();
                         }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message