I have even tried the following
new OutputStreamWriter(new FileOutputStream(File), "UTF-16");
...
InputSource TempIS = new InputSource(File.toURI().toString());
TempIS.setEncoding("UTF-16");
AParser.parse(TempIS, Handler);
And changed the prolog to reflect UTF-16. The hex editor correctly shows FE
FF now.
But still get the content prolog error.
Any help would be highly appreciated!!!
On 1/11/07, Jose Cornado <[EMAIL PROTECTED]> wrote:
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
----------------------
Everything has been said before, but since nobody listens we have to keep
going back and beginning all over again.
Andre Gide
--
José Cornado
--
home: http://www.efekctive.com
blog: 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