[
http://issues.apache.org/jira/browse/XALANJ-2047?page=comments#action_57823 ]
Anuj Gupta commented on XALANJ-2047:
------------------------------------
Sorry for the above duplicate comments ...
Using command line Utility
org.apache.xalan.xslt.ProcessOur -XSLTC -TEXT -IN Test.xml -XSL Test.xsl -OUT
Test.txt
The Tranformation happens Correctly.
If Transformation is Invoked by custom code , Error Happens
=========================================================
StreamSource xsl = new StreamSource(new File("Test.xsl"));
StreamSource xml = new StreamSource(new File("Test.xml"));
org.apache.xalan.xsltc.trax.TransformerFactoryImpl transFac = new
org.apache.xalan.xsltc.trax.TransformerFactoryImpl();
Templates template = transFac.newTemplates(xsl);
StringWriter sw = new StringWriter(1024*30);
StreamResult result = new StreamResult(sw);
template.newTransformer().transform(xml, result);
System.out.println(sw.toString());
=========================================================
Did I miss something here .
> 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 . 雑)
> 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]