You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fg...@apache.org on 2010/01/11 14:57:11 UTC
svn commit: r897861 -
/incubator/chemistry/trunk/chemistry/chemistry-atompub-server/src/main/java/org/apache/chemistry/atompub/server/CMISServiceResponse.java
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,