I'm not sure if Parser.parse uses inputstreams or readers.  Try creating a 
reader using UTF-8 and use that version of the parse method and see if it makes 
a difference....



*** Sent via BlackBerry

-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: j-users@xerces.apache.org <j-users@xerces.apache.org>
Sent: Thu Jan 11 13:15:56 2007
Subject: UTF-8/BOM Problem Again

Before hand, I ask your forgiveness if this issue has been raised before :-]

But I have been chasin my tail for a while.

This is the hex dump of prolog:

3c 3f 78 6d 6c 20 = "<?xml  "

I am using default ParserFactory on java 1.5/Win XP. The files are created with 
the following

 new FileOutputStream(AFile), "UTF-8");

And then they are read with the following

Parser.parse(AFile, Handler); 

Where am I missing anything?

-- 
José Cornado

--

home: http://www.efekctive.com
blog:   http://www.efekctive.com/blogging <http://www.efekctive.com/blogging> 
----------------------

Everything has been said before, but since nobody listens we have to keep going 
back and beginning all over again.

Andre Gide 

Reply via email to