camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: How to create csv with UTF-8 encoding using the Spring/XML DSL
Date Thu, 14 Feb 2013 12:01:21 GMT
On Thu, Feb 14, 2013 at 6:15 AM, sarfaraj <sarfarajsayyad@gmail.com> wrote:
> Hi,
>
> I want to create csv file with UTF-8 encoding.
>
> Using *CSV *component i am abale to create the csv file but with ANSI
> encoding. (Please refer below code)
>
> <to uri="bean:csvTranslator" />
>         <marshal>
>                 <csv />
>         </marshal>
> <to uri="file:src/fileserver?fileName=test.csv" />
>
> Could someone tell me how to create csv file with UTF-8 encoding using the
> Spring/XML DSL.
>

There is a charset option on the file endpoint
http://camel.apache.org/file2

> /Sarfaraj
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-create-csv-with-UTF-8-encoding-using-the-Spring-XML-DSL-tp5727566.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message