Return-Path: Delivered-To: apmail-xml-general-archive@www.apache.org Received: (qmail 95849 invoked from network); 6 Dec 2003 17:35:25 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 Dec 2003 17:35:25 -0000 Received: (qmail 66857 invoked by uid 500); 6 Dec 2003 17:35:14 -0000 Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 66819 invoked by uid 500); 6 Dec 2003 17:35:13 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 66806 invoked from network); 6 Dec 2003 17:35:13 -0000 Received: from unknown (HELO mx2.magma.ca) (206.191.0.250) by daedalus.apache.org with SMTP; 6 Dec 2003 17:35:13 -0000 Received: from mail3.magma.ca (mail3.magma.ca [206.191.0.221]) by mx2.magma.ca Magma's Mail Server with ESMTP id hB6HZGqH020029 for ; Sat, 6 Dec 2003 12:35:16 -0500 Received: from jimdkwin (ottawa-hs-64-26-147-157.d-ip.magma.ca [64.26.147.157]) by mail3.magma.ca (8.12.10/8.12.9) with SMTP id hB6HZGPY003334 for ; Sat, 6 Dec 2003 12:35:16 -0500 Message-ID: <000b01c3bc1f$60c46e80$6201a8c0@magma.ca> Reply-To: "Jim Cobban" From: "Jim Cobban" To: References: <000f01c3bc13$edaf6040$6201a8c0@magma.ca> <3FD210E8.2010208@yahoo.de> Subject: Re: UTF-8 output invalid from org.apache.xml.serialize.XMLSerializer Date: Sat, 6 Dec 2003 12:35:44 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ----- Original Message ----- From: "J.Pietschmann" To: Sent: Saturday, December 06, 2003 12:24 PM Subject: Re: UTF-8 output invalid from org.apache.xml.serialize.XMLSerializer > Jim Cobban wrote: > > serializer = new XMLSerializer ( > > new FileWriter(fileName), > > This FileWriter will write characters to the file according > to the default platform encoding (most likely ISO-8859-1). > The serializer doesn't even get a chance to decide about > the encoding. You should supply a FileOutputStream to the > serializer. Thank you. I knew I was doing something wrong, and that is precisely the mistake I made. I copied the code from an example that came with the package without taking the time to understand exactly what was going on. When I changed the code to construct a FileOutputStream it worked correctly. Note to self: RTFM --------------------------------------------------------------------- To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org