[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" ?
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|