Re: [xml-dev] Error: "Invalid byte 1 of 1-byte UTF-8 sequence" ?

From
James Fuller <>
To
Ben Stover <>
Date
2007-12-27T17:21:15Z
ID
<>
Thread
Re: [xml-dev] Error: "Invalid byte 1 of 1-byte UTF-8 sequence" ?
Hello Ben


On Dec 27, 2007 4:50 PM, Ben Stover <> wrote:
> I got a XML doc and a java class which should process this XML doc (on WinXP-OS).
>
> Unfortunately I am getting an execption:
>
> "Invalid byte 1 of 1-byte UTF-8 sequence"
>
> What's wrong?

most likely the xml document is not encoded with utf, most likely its
iso-8859 or something close to that.

I would recommend using something like HTML Tidy to clean up these kind of docs.

lots of good advice can be found here as well

http://www.dpawson.co.uk/xsl/sect2/N3353.html

hth, Jim Fuller