[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Invalid byte 2 of 2-byte UTF-8 sequence exception

Subject: Re: Invalid byte 2 of 2-byte UTF-8 sequence exception while transforming
From: "Pankaj Bishnoi" <pankaj.bishnoi@xxxxxxxxxxx>
Date: Fri, 2 Feb 2007 16:58:15 +0530
Re:  Invalid byte 2 of 2-byte UTF-8 sequence exception
Hi Owen
                The file starts with <?xml version="1.0"
encoding="ISO-8859-1"?> so i think before transforming the encoding of file
is changed to UTF-8(Default encoding for Xalan transformer) and since UTF-8
encoded file cannot contain ISO-8859-1 characters so this might be the cause
of this problem i am still debugging it.

Thanks alot guys
Pankaj
----- Original Message ----- 
From: "Owen Rees" <owen.rees@xxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, February 02, 2007 4:07 PM
Subject: Re:  Invalid byte 2 of 2-byte UTF-8 sequence exception while
transforming


> --On 02 February 2007 14:47 +0530 Pankaj Bishnoi wrote:
>
> >          I am using Xalan2.7.0 for transformation. I am getting a
> > "MalformedByteSequenceException:: Invalid byte 2 of 2-byte UTF-8
sequence"
> > exception while transforming a xml file. The encoding defined in input
xml
> > is ISO-8859-1.
>
> That message (and the stack trace) indicate that the XML parser is
treating
> the input as UTF-8.
>
> When you say "The encoding defined in input xml is ISO-8859-1." do you
mean
> that the XML starts with <?xml version="1.0"  encoding="ISO-8859-1"?>,
that
> the data in the file is encoded in ISO-8859-1 or both?
>
> Is the file being delivered by some mechanism that specifies the encoding
> (HTTP can do that)? If so, what encoding is specified?
>
> -- 
> Owen Rees
> Hewlett Packard Laboratories, Bristol, UK

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.