Hi, > Can some one tell me how to escape comma in camel csv component.
Actually CSV component doesn't conform Camel standards in 100%. First of all it depends on the project with no stable release [1] and basically no documentation. It is even hard to get the sources of the CSV library jar used by Camel, as it is some kind of snapshot taken from the trunk at certain point of time. I personally don't know how to escape CSV with our component, so I process my messages with StringEscapeUtils.html#escapeCsv [2] method from Apache Commons before passing them to the CSV data format. Actually I created camel-csv-simple data format which doesn't depend on Commons CSV project. It works similarly to camel-csv but doesn't require any additional dependencies and handles CSV escaping out-of-the-box by default. I guess I should have committed it some time ago. I'll try to submit it to trunk after some discussion with fellow Camel riders. In the meantime StringEscapeUtils.html#escapeCsv could be a way to go :) . Best regards. [1] http://commons.apache.org/proper/commons-csv/downloads.html [2] http://commons.apache.org/proper/commons-lang/javadocs/api-3.1/org/apache/commons/lang3/StringEscapeUtils.html#escapeCsv(java.lang.String) -- Henryk Konsek http://henryk-konsek.blogspot.com