Subject: RE: [xsl] SAXON Fatal Error UTF-8 sequence (character code: 0x63) From: Wolfgang Bogacz <wbogacz@xxxxxxxxxxx> Date: Fri, 21 Dec 2001 10:10:38 -0500 |
This shows that you're stating the file to be UTF-8, while internally the encoding is different than UTF-8. If you correctly state the encoding, all will be well. -----Original Message----- From: Mike Ferrando [mailto:mikeferrando@xxxxxxxxx] Sent: Friday, December 21, 2001 9:51 AM 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 -> |
---|---|---|
[xsl] RE: XPath 2.0 (Backwards Comp, McKeever, Marty | Thread | [xsl] The Solution -- Re: how to re, Dimitre Novatchev |
RE: [xsl] SAXON Fatal Error UTF-8 s, Mike Ferrando | Date | RE: [xsl] SAXON Fatal Error UTF-8 s, Julian Reschke |
Month |