DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27502>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27502 bug in org.apache.xalan.xsltc.runtime.output.TransletOutputHandlerFactory Summary: bug in org.apache.xalan.xsltc.runtime.output.TransletOutputHand lerFactory Product: XalanJ2 Version: CurrentCVS Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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);
