Hello all,
Just thought I would write and say thanks for all the help. I finally found
what the problem was, and it was quite simple in the end. The version the
worked correctly set up using:
new InputSource( new FileInputStream( ... ) )
whereas the file that failed to be parsed correctly was loaded in using:
new InputSource( new FileReader( ... ) )
As the javadoc says, FileReader is a "Convenience class for reading character
files. The constructors of this class assume that the default character
encoding and the default byte-buffer size are appropriate. To specify these
values yourself, construct an InputStreamReader on a FileInputStream."
I am not entirely sure why the default encoding on the one server was able to
parse UTF8, and not on the other, but I am happy that the behavior is now
properly specified.
Cheers!
Carl
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]