Subject: RE: [xsl] SAXON Fatal Error UTF-8 sequence (character code: 0x63) From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Fri, 21 Dec 2001 16:43:25 -0000 |
Mike, If you have perl you can do perl -e"open(FH,$ARGV[0]);binmode FH;$s=join('',<FH>);print substr $s,0,33064;" offending_file.xml Which will print the first 33064 bytes Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Mike Ferrando > Sent: 21 December 2001 15:54 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] SAXON Fatal Error UTF-8 sequence > (character code: 0x63) > > > Michael, > So the number "33064" is how many bytes from the beginning of > the document the error occured? Is it possible to figure out > where that would be? > > Mike F. > > --- Michael Kay <michael.h.kay@xxxxxxxxxxxx> wrote: > > > 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.) > > > > Basically, AElfred has to translate bytes into characters before it > > can work out where the line endings are. If a failure occurs while > > doing that > > translation, then it can't give you the line and column number, so > > instead > > it just gives you the byte offset in the file. > > > > Mike Kay > > > > > > 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, Michael Kay | Thread | RE: [xsl] XPath 2.0 is not XPath 2., Michael Kay |
RE: [xsl] Filling a table cell with, Matthew L. Avizinis | Date | [xsl] Re: The Solution -- Re: how t, Gunther Schadow |
Month |