cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r557964 - /cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceTransformer.java
Date Fri, 20 Jul 2007 11:10:44 GMT
Author: gkossakowski
Date: Fri Jul 20 04:10:43 2007
New Revision: 557964

URL: http://svn.apache.org/viewvc?view=rev&rev=557964
Log:
COCOON-2093: ServletServiceTransformer used platform-dependend encoding. Now it always uses
UTF-8.

Modified:
    cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceTransformer.java

Modified: cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceTransformer.java?view=diff&rev=557964&r1=557963&r2=557964
==============================================================================
--- cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceTransformer.java
(original)
+++ cocoon/trunk/core/cocoon-servlet-service/cocoon-servlet-service-components/src/main/java/org/apache/cocoon/servletservice/postable/components/ServletServiceTransformer.java
Fri Jul 20 04:10:43 2007
@@ -84,7 +84,8 @@
 		super.endDocument();
 		try {
 			String xml = endSerializedXMLRecording();
-			IOUtils.copy(new StringReader(xml), servletSource.getOutputStream());
+			//FIXME: Not sure if UTF-8 should always be used, do we have defined this encoding somewhere
in Cocoon?
+			IOUtils.copy(new StringReader(xml), servletSource.getOutputStream(), "UTF-8");
 			SourceUtil.parse(saxParser, servletSource, contentHandler);
 		}
 		catch (Exception e) {



Mime
View raw message