So whatever it is you're streaming to, doesn't handle UTF8 then?
patelp7 <mailto:priyanka.pa...@optimalstrategix.com>
13 April 2016 at 20:26
I changed my route to
from(file).to("file:/?fileName=out.csv&fileExist=Append")
It preserved the character.
--
View this message in context:
http://camel.465427.n5.nabble.com/Unicode-characters-not-recognizing-when-reading-file-tp5781028p5781036.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Ioannis Mavroukakis <mailto:imavrouka...@gmail.com>
13 April 2016 at 20:15
Are you sure your terminal encoding is UTF-8 capable? How about if you
tried to simply redirect the contents to another file and opened that
afterwards to verify?
patelp7 wrote:
patelp7 <mailto:priyanka.pa...@optimalstrategix.com>
13 April 2016 at 20:13
I guess my assumption was wrong. I removed tokenizing and its still not
working :(
--
View this message in context:
http://camel.465427.n5.nabble.com/Unicode-characters-not-recognizing-when-reading-file-tp5781028p5781032.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Ioannis Mavroukakis <mailto:imavrouka...@gmail.com>
13 April 2016 at 20:05
If you remove tokenizing does it print it out the character correctly?
patelp7 wrote:
patelp7 <mailto:priyanka.pa...@optimalstrategix.com>
13 April 2016 at 20:03
Hi,
I tried both solutions. My JVM default encoding is already set to UTF-8. I
confirmed by printing System.getProperty("file.encoding").
I also changed my route to:
from(file).marshal().string("UTF-8").split(body().tokenize("\r\n|\n|\r")).streaming()
It's still converting the character to "?". I feel its reading the right
character but its getting corrupted when tokenizing/streaming?
--
View this message in context:
http://camel.465427.n5.nabble.com/Unicode-characters-not-recognizing-when-reading-file-tp5781028p5781030.html
Sent from the Camel - Users mailing list archive at Nabble.com.