[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Tony Lavinio" <alavinio@g...>
  • To: "Ben Stover" <bxstover@y...>
  • Date: Thu, 27 Dec 2007 12:01:14 -0500

On Dec 27, 2007 10:50 AM, Ben Stover <bxstover@y...> 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?

Probably the file isn't in UTF-8. If you don't include an encoding= in
the XML declaration, it is assumed to be UTF-*.
Most likely, this document is really ISO-8859-1 or its superset, Windows1252.

> Because I have not the java source I can only change the XML doc.
> The XML doc starts:
>
> <?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> ....


> It could be that there are some line end conversion errors when I downloaded the XML file from
> Linux server.
>
> Could this be the problem ?

Not likely.


-- 
Tony Lavinio       DataDirect Technologies       alavinio@d...
High-performance XML Processor: DataDirect XQuery http://www.xquery.com/
EDI/Flat File<->XML Converters (Java|.Net) http://www.xmlconverters.com/


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member