This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: SAXON Fatal Error UTF-8 sequence (character code: 0x63)
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 21 Dec 2001 16:43:25 -0000
- Subject: RE: [xsl] SAXON Fatal Error UTF-8 sequence (character code: 0x63)
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Mike Ferrando
> Sent: 21 December 2001 15:54
> To: xsl-list@lists.mulberrytech.com
> 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@ntlworld.com> 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