[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-dev
Subject:    cvs commit: xml-xindice/java/src/org/apache/xindice/tools/command ExportTree.java
From:       jbates () apache ! org
Date:       2002-03-26 16:53:03
[Download RAW message or body]

jbates      02/03/26 08:53:03

  Modified:    java/src/org/apache/xindice/tools/command ExportTree.java
  Log:
  Still a nasty encoding bug in ExportTree: fixed to output UTF-8, just as
  RetrieveDocument.
  
  Revision  Changes    Path
  1.2       +6 -2      xml-xindice/java/src/org/apache/xindice/tools/command/ExportTree.java
  
  Index: ExportTree.java
  ===================================================================
  RCS file: /home/cvs/xml-xindice/java/src/org/apache/xindice/tools/command/ExportTree.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ExportTree.java	6 Dec 2001 19:33:57 -0000	1.1
  +++ ExportTree.java	26 Mar 2002 16:53:03 -0000	1.2
  @@ -56,7 +56,7 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    *
  - * $Id: ExportTree.java,v 1.1 2001/12/06 19:33:57 bradford Exp $
  + * $Id: ExportTree.java,v 1.2 2002/03/26 16:53:03 jbates Exp $
    */
   
   import java.util.Hashtable;
  @@ -185,7 +185,11 @@
                  String content = (String) res.getContent();
                  FileOutputStream output =
                        new FileOutputStream(new File(directory, files[j]));
  -               output.write(content.getBytes());
  +               
  +               /* UTF8FIXED: as we omit encoding declaration in output XML
  +                * for the moment, we MUST write file in UTF-8
  +                */
  +               output.write(content.getBytes("utf-8"));
                  output.close();
               }
            }
  
  
  
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic