[ http://issues.apache.org/jira/browse/XALANJ-1813?page=all ]
Brian Minchau updated XALANJ-1813: ---------------------------------- Version: 2.6 (was: Latest Development Code) > bug in org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory > ------------------------------------------------------------------------- > > Key: XALANJ-1813 > URL: http://issues.apache.org/jira/browse/XALANJ-1813 > Project: XalanJ2 > Type: Bug > Components: XSLTC > Versions: 2.6 > Environment: Operating System: Other > Platform: Other > Reporter: David Ignjic > Assignee: Xalan Developers Mailing List > > When i use org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory > to create output to writer code like this > TransletOutputHandlerFactory tohFactory = > OutputHandlerFactory.newInstance(); > tohFactory.setOutputType(TransletOutputHandlerFactory.STREAM); > tohFactory.setEncoding(translet._encoding);//("UTF-8") > tohFactory.setWriter(out); > tohFactory.setOutputMethod(translet._method);//("TEXT") > translet.transform(dom, tohFactory.getSerializationHandler()); > I got error after transformation (in input xml are these characters > "ľšÄťžýáÃ"0 > org.xml.sax.SAXException: Attempt to output character of integral value 352 > that is not represented in specified output encoding of UTF-8. > void org.apache.xml.serializer.ToTextStream.writeNormalizedChars(char > [], int, int, boolean, boolean) > When I used directly org.apache.xml.serializer.ToTextStream; This error not > occur. > Code OK: > ToTextStream result = new ToTextStream(); > result.setEncoding(translet._encoding); > result.setWriter(out); > result.setOutputFormat( > OutputPropertiesFactory.getDefaultMethodProperties( > Method.TEXT)); > translet.transform(dom, result); -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]