This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question with xalan, java, utf8


Gail Buffington wrote:

> FileWriter output = new FileWriter("/tmp/testlog");
> StreamResult result = new StreamResult(output);
...
> The resulting output has garbled UTF-8 characters.

I am under the impression that java.io.FileWrite will
change the character encoding to "the native encoding
of the platform".

Simply use java.io.File instead. This allows the Saxon
serializer to do the encoding itself and write the
resulting bytes directly into the file.

J.Pietschmann



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]