cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sylv...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/serialization RTFSerializer.java
Date Fri, 03 May 2002 12:27:25 GMT
sylvain     02/05/03 05:27:25

  Modified:    src/java/org/apache/cocoon/serialization Tag:
                        cocoon_2_0_3_branch RTFSerializer.java
  Log:
  Ensure ISO-8859-1 is used even if it's not the platform default.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.5.2.1   +2 -4      xml-cocoon2/src/java/org/apache/cocoon/serialization/RTFSerializer.java
  
  Index: RTFSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/serialization/RTFSerializer.java,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -r1.5 -r1.5.2.1
  --- RTFSerializer.java	22 Feb 2002 07:03:55 -0000	1.5
  +++ RTFSerializer.java	3 May 2002 12:27:25 -0000	1.5.2.1
  @@ -56,8 +56,6 @@
   import org.apache.avalon.framework.component.ComponentManager;
   import org.apache.avalon.framework.component.Composable;
   
  -import org.apache.cocoon.components.url.URLFactory;
  -
   import org.apache.log.Priority;
   import org.apache.log.util.OutputStreamLogger;
   
  @@ -80,7 +78,7 @@
    * to serialize XSL:FO documents to RTF streams.
    *
    * @author <a href="mailto:gianugo@rabellino.it">Gianugo Rabellino</a>
  - * @version CVS $Id: RTFSerializer.java,v 1.5 2002/02/22 07:03:55 cziegeler Exp $
  + * @version CVS $Id: RTFSerializer.java,v 1.5.2.1 2002/05/03 12:27:25 sylvain Exp $
    */
   
   public class RTFSerializer extends AbstractTextSerializer
  @@ -116,7 +114,7 @@
               new OutputStreamLogger(this.getLogger(), Priority.DEBUG);
   
             rtfWriter =
  -            new BufferedWriter(new OutputStreamWriter(out));
  +            new BufferedWriter(new OutputStreamWriter(out, "ISO-8859-1"));
             handler = new Converter(rtfWriter,
               Converter.createConverterOption(cocoonLogger));
             super.setContentHandler(handler);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message