Subject: RE: [xsl] SAXON Fatal Error UTF-8 sequence (character code: 0x63) From: "Julian Reschke" <julian.reschke@xxxxxx> Date: Fri, 21 Dec 2001 16:11:39 +0100 |
Hi, check whether your file starts with a UTF8 Byte Order Mark. Old versions of (the XML parser in) Saxon didn't expect this, and I think the error would used to look similar (Saxon 6.5 seems to work right). > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Mike Ferrando > Sent: Friday, December 21, 2001 3:51 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] SAXON Fatal Error UTF-8 sequence (character code: > 0x63) > > > Michael, > I did have the encoding specified in both the xml and the xsl > documents (below). You book helped me to realize the value of doing > this despite the utf-8 default. > > As a result, I knew it must be a character problem but I didn't know > where to look in the document because the column and line numbers > were so wacky. Is there a way to decipher this error location when it > happens so I won't have to do the same thing again? > > > > Line: -1 > > > Column: 33064 > > I read somewhere that this is a binary location. Does that mean I > could translate it (from however saxon is giving the location) and > find out where it is in my document? (Hey, I am really trying to > figure out how saxon comes up with this location.) > > Thanks, > Mike F. > > <?xml version="1.0" encoding="utf-8"?> > <?xml-stylesheet type="text/xsl"?> > <!DOCTYPE C01> > <C01> > ....data > </C01> > > <?xml version="1.0" encoding="utf-8"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > ...html and templates... > > </xsl:stylesheet> > > > > > --- Michael Kay <michael.h.kay@xxxxxxxxxxxx> wrote: > > It means your file is in a non-UTF-8 encoding (probably iso-8859-1) > > but it > > doesn't contain an XML declaration that says so. Add an XML > > declaration > > specifying the correct encoding and all should be well. > > > > Mike Kay > > > > > -----Original Message----- > > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of > > > Mike Ferrando > > > Sent: 20 December 2001 19:59 > > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > > Subject: [xsl] SAXON Fatal Error UTF-8 sequence (character code: > > 0x63) > > > > > > > > > Friends, > > > I have been doing just fine using Saxon to parse my xml > > documents. > > > But now I am getting an wierd error. (below) Can anyone tell me > > how I > > > can fix this? > > > > > > Mike F. > > > > > > > > > C:\WORKSHOP\BATCH>c:\workshop\saxoninstant\saxon.exe -w0 -o > > > ..\documents\Edison > > > -INStst.html ..\documents\Edison-INStst.xml > > > ..\shared\styles\Myxmltools10.xsl " > > > filename=Edison-INStst" > > > Fatal error reported by XML parser: bad continuation of > > multi-byte > > > UTF-8 sequenc > > > e (character code: 0x63) > > > URL: file:/C:/WORKSHOP/documents/Edison-INStst.xml > > > Line: -1 > > > Column: 33064 > > > Error > > > org.xml.sax.SAXParseException: bad continuation of multi-byte > > UTF-8 > > > sequence ( > > > character code: 0x63) > > > Transformation failed > > > > > > C:\WORKSHOP\BATCH>pause > > > Press any key to continue . . . > > > UTF-8 sequence (character code: 0x63) > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Check out Yahoo! Shopping and Yahoo! Auctions for all of > > > your unique holiday gifts! Buy at http://shopping.yahoo.com > > > or bid at http://auctions.yahoo.com > > > > > > XSL-List info and archive: > > http://www.mulberrytech.com/xsl/xsl-list > > > > > > > > > XSL-List info and archive: > > http://www.mulberrytech.com/xsl/xsl-list > > > > > __________________________________________________ > Do You Yahoo!? > Check out Yahoo! Shopping and Yahoo! Auctions for all of > your unique holiday gifts! Buy at http://shopping.yahoo.com > or bid at http://auctions.yahoo.com > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] SAXON Fatal Error UTF-8 s, Mike Ferrando | Thread | RE: [xsl] SAXON Fatal Error UTF-8 s, Michael Kay |
RE: [xsl] SAXON Fatal Error UTF-8 s, Wolfgang Bogacz | Date | RE: [xsl] SAXON Fatal Error UTF-8 s, Michael Kay |
Month |