Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Invalid byte 2 of 2-byte UTF-8 sequence exception while transforming

From: Owen Rees <owen.rees@------>
To:
Date: 2/2/2007 10:38:00 AM
--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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent