camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: Read Utf-8 file validate transform as UTF-8
Date Wed, 17 Feb 2010 08:43:19 GMT
Hi,

Can you past the stack trace of your issue and your camel route?
They will help us to dig the issue.

Willem

Bak Attila wrote:
> Hi, Thanks,
> 
> I have converted the input and set successfully as message body. The problem
> is that i get an exception because i also move the file away and it
> complains probably because it cannot convert the body...
> Or should i just convert without settting it as the body?
> 
> Thanks
> attila
> 
> 
> 
> Claus Ibsen-2 wrote:
>> You can pass in the encoding in the convertBodyTo. But I believe the
>> was a bug so you gotta use Camel 2.2 where its fixed.
>>
>> .convertBodyTo(String.class, "utf-8"):
>>
>> Otherwise you can just use a Processor and covert the data yourself.
>>
>>
>> On Tue, Feb 16, 2010 at 4:55 PM, Bak Attila <bakattila12@gmail.com> wrote:
>>> Hi
>>>
>>> I have a problem. I am reading a file(utf-8) then validate against an XSD
>>> and transform with an XSL transformator. Auf mein Mac everything works ok
>>> but when i transfer the app to an older machine it stops working because
>>> of
>>> some character loss.
>>> I am using convertBodyTo(String.class) and i think the problem is that
>>> during this call it is converted false on the other machine.
>>> What is the recommended way of using/converting validating  UTF-8 files?
>>> I have read that there is a system prop:
>>> "org.apache.camel.default.charset".
>>> Where do i need to set that?
>>>
>>> Can someone please give me an example(pseudocode) of correctly
>>> reading/converting/validating/transforming UTF-8 files?
>>>
>>> Thanks
>>> attila
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Read-Utf-8-file-validate-transform-as-UTF-8-tp27610459p27610459.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> -- 
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
> 


Mime
View raw message