[ 
http://issues.apache.org/jira/browse/XALANJ-2047?page=comments#action_57811 ]
     
Anuj Gupta commented on XALANJ-2047:
------------------------------------

XSL Contents 
=============================================
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

<xsl:output method="text" encoding="UTF-8" />

<xsl:template match="doc">
        <xsl:value-of select="foo"/>
</xsl:template>

</xsl:stylesheet>
===================================================

XML Contents
=============================================
<?xml version="1.0" encoding="UTF-8"?>
<doc>
  <foo>Test Japanese &#38609;  data</foo>
</doc>
=============================================

Running from Command line  , transforms the XML without any error.

However why trying to do the same  by JSP, the tranformation Exception come ( 
xsl out Method used  Text  [<xsl:output method="text" encoding="UTF-8" /> ] )

I have tried on tomcat 4.0.4 . Is the issue something related to webserver ? I 
am not sure though.


Thanks,
Anuj




> xsl:output encoding  not handling the Japanese Characters even with UTF-8
> -------------------------------------------------------------------------
>
>          Key: XALANJ-2047
>          URL: http://issues.apache.org/jira/browse/XALANJ-2047
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Xalan 2.6.0 
> tomcat4
> jdk 1.4.2
> Transformer used :- xsltc
>     Reporter: Anuj Gupta

>
> I am getting error while  transforming  Japanese data using xsltc ( xalan 
> 2.6.0 )
> My xsl coantains ( <xsl:output method="text" encoding="UTF-8" /> ) and xml 
> contains Japanese Characters (e.g . &#38609;)
> Error comes during Transformationas
> ERROR:  'org.xml.sax.SAXException: Attempt to output character of integral 
> value  38609 that is not represented in specified output encoding of UTF-8.' 
> I have tried with the patch as mentioned in the Bug#29234.  
> After making the changes The Error did not come , but the japanese Characters 
> were converted to ? (Question marks). 
> Any input in this regard will be really helpful .
> Regards,
> Anuj

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to