Changeset 6585 for trunk/gli


Ignore:
Timestamp:
2004-01-22T15:18:16+13:00 (20 years ago)
Author:
mdewsnip
Message:

Now outputs UTF-8 correctly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/util/ApplyXSLT.java

    r6572 r6585  
    7171
    7272        // Use the Transformer to transform an XML Source and send the output to a Result object
    73         StringWriter output = new StringWriter();
     73        OutputStreamWriter output = new OutputStreamWriter(System.out, "UTF-8");
    7474        transformer.transform(new StreamSource(xml_in), new StreamResult(output));
    75         System.out.println(output.toString());
    7675    }
    7776    catch (TransformerConfigurationException ex) {
     
    8079        System.exit(1);
    8180    }
    82     catch (TransformerException ex) {
     81    catch (Exception ex) {
    8382        System.err.println("XMLTransformer: couldn't transform the source: " + ex.getMessage());
    8483        System.exit(1);
Note: See TracChangeset for help on using the changeset viewer.