chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fguilla...@apache.org
Subject svn commit: r897861 - /incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
Date Mon, 11 Jan 2010 13:57:11 GMT
Author: fguillaume
Date: Mon Jan 11 13:57:10 2010
New Revision: 897861

URL: http://svn.apache.org/viewvc?rev=897861&view=rev
Log:
Work around Abdera/Woodstox encoding bug

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java?rev=897861&r1=897860&r2=897861&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
Mon Jan 11 13:57:10 2010
@@ -55,7 +55,7 @@
 
     @Override
     protected void writeTo(StreamWriter sw) throws IOException {
-        sw.startDocument();
+        ((StaxStreamWriter) sw).startDocument("UTF-8", "1.0");
         sw.startService();
         ((StaxStreamWriter) sw).writeNamespace(CMIS.CMIS_PREFIX, CMIS.CMIS_NS);
         ((StaxStreamWriter) sw).writeNamespace(AtomPubCMIS.CMISRA_PREFIX,



Mime
View raw message