XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Error: "Invalid byte 1 of 1-byte UTF-8 sequence" ?

On Dec 27, 2007 10:50 AM, Ben Stover <bxstover@yahoo.co.uk> 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@datadirect.com
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]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS