[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Error: "Invalid byte 1 of 1-byte UTF-8 sequence" ?

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

Re:  Error: "Invalid byte 1 of 1-byte UTF-8 sequence" ?
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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.