FYI: I meant PrintStream.print() [1] though the PrintWriter variant also
uses the default encoding.

[1] http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html#print
(java.lang.String)

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrgla...@ca.ibm.com
E-mail: mrgla...@apache.org

Michael Glavassevich/Toronto/i...@ibmca wrote on 10/05/2009 09:24:39 AM:

> kesh...@us.ibm.com wrote on 10/05/2009 09:19:32 AM:
>
> > > There is no stylesheet, I'm not using any XSLT file. It is simply
> > SAX reading the XML file and writing to standard output.
> >
> > Sorry; I'm used to thinking in terms of Xalan rather than Xerces and
> > gave the wrong answer.
> >
> > Can you confirm whether the problem is occurring in the parser or on
> > the the writing-to-standard-output side?
> >
> > How are you setting up the SAX serializer?
>
> He's not. The code is writing to System.out.println() [1] which
> always uses the platform's default encoding. One of those Java I/O
> gotchas folks keep tripping over. Has nothing to do with SAX or Xerces.
>
> > Or, if you aren't using our serializer, how are you writing to
> > standard output?
> >
> > ______________________________________
> > "... Three things see no end: A loop with exit code done wrong,
> > A semaphore untested, And the change that comes along. ..."
> >  -- "Threes" Rev 1.1 - Duane Elms / Leslie Fish (http://www.ovff.
> > org/pegasus/songs/threes-rev-11.html)
>
> Thanks.
>
> [1] http://java.sun.com/javase/6/docs/api/java/io/PrintWriter.
> html#print(java.lang.String)
>
> Michael Glavassevich
> XML Parser Development
> IBM Toronto Lab
> E-mail: mrgla...@ca.ibm.com
> E-mail: mrgla...@apache.org

Reply via email to