xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric van der Vlist <...@dyomedea.com>
Subject Setting the encoding type with Xalan
Date Fri, 07 Apr 2000 07:26:36 GMT

I'd like to be able to set the encoding of the XML files using Xalan
(command line).

I have created an updated version of the Process class to use the
InputSource.setEncoding() method :

    XSLTInputSource is = new XSLTInputSource();
    Node sourceTree = processor.getSourceTreeFromInput(is);
    stylesheet.process(processor, sourceTree, new
    System.out.println("encoding : "+ is.getEncoding());

The trace (last line) is showing the encoding has been taken into
account, but there seem to be no effect on the result (characters are
still not read as iso-8859-1 from the input file).

Do you have any idea of what may be happening ?


Eric van der Vlist       Dyomedea                    http://dyomedea.com
creator                  http://xmlfr.org            http://ducotede.com
editor                   http://xmlhack.com              http://dmoz.org

View raw message