R
rob
Hi all, I have some xml that has the cent character in it
( not sure it it will post but here it is -> ¢ )
I get this error
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException):
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8
sequence.
when executing
java org.apache.xalan.xslt.Process -IN cent.xml -XSL cent.xsl -OUT
cent.html
anyhow, I am trying to use
my cent.xml is
********************************************
<?xml version="1.0" encoding="UTF-8"?>
<EMAIL>
<L>10¢</L>
</EMAIL>
*********************************************
my cent.xsl is
============================
<xslutput method="html"/>
<xsl:template match="/">
<html>
<body>
<xsl:value-of select="/EMAIL/L"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
=============================
I think is has to do with the encoding because if I change my
encoding="UTF-8" to encoding="ascii" in my xml
I generates the html (but it did not convert the cent char properly,
but at least no error)
thanks for any help
( not sure it it will post but here it is -> ¢ )
I get this error
(Location of error unknown)XSLT Error
(javax.xml.transform.TransformerException):
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8
sequence.
when executing
java org.apache.xalan.xslt.Process -IN cent.xml -XSL cent.xsl -OUT
cent.html
anyhow, I am trying to use
my cent.xml is
********************************************
<?xml version="1.0" encoding="UTF-8"?>
<EMAIL>
<L>10¢</L>
</EMAIL>
*********************************************
my cent.xsl is
============================
<xslutput method="html"/>
<xsl:template match="/">
<html>
<body>
<xsl:value-of select="/EMAIL/L"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
=============================
I think is has to do with the encoding because if I change my
encoding="UTF-8" to encoding="ascii" in my xml
I generates the html (but it did not convert the cent char properly,
but at least no error)
thanks for any help