Thanks Willem, but I resolved this issue following the notes on this page: http://camel.apache.org/xslt.html
Thanks -Joe -----Original Message----- From: Willem Jiang [mailto:willem.ji...@gmail.com] Sent: Wed 3/17/2010 4:50 AM To: users@camel.apache.org Subject: Re: XSL Character encoding issue Hi Joe, Can you show me the stack trace? I can't see anything wrong by going through the camel route. Willem Joe Osowski wrote: > We're using Camel version 2.2.0 > > Here us the route in question: > > from(ARTICLE_INDEX_QUEUE) > // if XSL transformation failed, don't retry. > .onException(Exception.class) > .handled(true) > .maximumRedeliveries(0) > > .to("log:org.plos.camel.routes.SolrXslTransformationFailed?level=ERROR" + > "&showException=true" + > "&showStackTrace=true" + > "&showBody=true" + > "&showHeaders=true" + > "&showExchangeId=true" + > "&multiline=true") > .setHeader("to", constant(adminEmail)) > .setHeader("from", constant("do-not-re...@plos.org")) > .setHeader("subject", constant("Article Solr XSL Transformation > failed")) > > .setBody(body().append("\n====================\nError:\n").append(exceptionMessage())) > .to(mailServer) > .end() > > .to("log:org.plos.camel.routes.SolrArticleIndexMessageReceived?level=INFO&showExchangeId=true&showHeaders=true") > .to("xslt:" + xslLocation + "?converter=xmlConverter") > .to(ARTICLE_SOLR_QUEUE); > > > > > > -----Original Message----- > From: Willem Jiang [mailto:willem.ji...@gmail.com] > Sent: Mon 3/15/2010 6:11 PM > To: users@camel.apache.org > Subject: Re: XSL Character encoding issue > > Hi, > > Can I have a look at your route? Basically, camel converter supports > different character by setting the Exchange property with the key > Exchange.CHARSET_NAME and value "UTF-8". In this way camel will set > right character encoding when it need to change the byte into String. > > BTW, which version of camel are you using? > > Willem > Joe Osowski wrote: >> I'm seeing some strange behavior with character encoding and the XSLT >> component. I'm trying to send a '𝒟' through (Hex: 𝒟). >> xsltproc handles the source xml/xsl transform fine. But the Camel >> transformation component munges this character into "??". >> >> There was another poster with a similar problem. I've set the character >> encoding to UTF-8 with the system property. >> >> System.setProperty(XmlConverter.DEFAULT_CHARSET_PROPERTY,"UTF-8"); >> >> But to no avail. I would be happy to send my XML and XSL need be. Has >> anyone else had/resolved this issue? >> >> Thanks >> Joe >> >> > > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- This email is confidential to the intended recipient. If you have received it in error, please notify the sender and delete it from your system. Any unauthorized use, disclosure or copying is not permitted. The views or opinions presented are solely those of the sender and do not necessarily represent those of Public Library of Science unless otherwise specifically stated. Please note that neither Public Library of Science nor any of its agents accept any responsibility for any viruses that may be contained in this e-mail or its attachments and it is your responsibility to scan the e-mail and attachments (if any).