Author: bback
Date: 2006-03-06 20:02:41 +0000 (Mon, 06 Mar 2006)
New Revision: 8173

Modified:
   trunk/apps/frost-0.7/source/frost/XMLTools.java
Log:
changed XML file encoding from UTF-16 to UTF-8, saves alot of space and 
accomplishes the same

Modified: trunk/apps/frost-0.7/source/frost/XMLTools.java
===================================================================
--- trunk/apps/frost-0.7/source/frost/XMLTools.java     2006-03-06 15:39:46 UTC 
(rev 8172)
+++ trunk/apps/frost-0.7/source/frost/XMLTools.java     2006-03-06 20:02:41 UTC 
(rev 8173)
@@ -161,12 +161,12 @@
         */
        public static boolean writeXmlFile(Document doc, String filename) {
                try {
-                       OutputFormat format = new OutputFormat(doc, "UTF-16", 
false);
+                       OutputFormat format = new OutputFormat(doc, "UTF-8", 
false);
                        format.setLineSeparator(LineSeparator.Windows);
                        //format.setIndenting(true);
                        format.setLineWidth(0);
                        format.setPreserveSpace(true);
-                       OutputStreamWriter writer = new OutputStreamWriter(new 
FileOutputStream(filename), "UTF-16");
+                       OutputStreamWriter writer = new OutputStreamWriter(new 
FileOutputStream(filename), "UTF-8");
                        XMLSerializer serializer = new XMLSerializer(writer, 
format);
                        serializer.asDOMSerializer();
                        serializer.serialize(doc);


Reply via email to