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: Camel Property - UTF 8 issues
Date Thu, 19 Mar 2015 06:05:20 GMT
Hi

Yeah that is a good idea Christian. I have logged a ticket
https://issues.apache.org/jira/browse/CAMEL-8511

On Tue, Mar 17, 2015 at 10:22 PM, Christian Müller
<christian.mueller@gmail.com> wrote:
> We don't have a class DefaultPropertyPlaceholder in Camel...
>
> If you have fixed the issue, it would be good if you can raise a JIRA and
> apply your patch.
> I propose to add an "encoding" option to the PropertiesComponent. Than we
> can populate the Properties class in DefaultPropertiesResolver with a
> Reader instead an InputStream.
>
> Best,
>
> Christian
> -----------------
>
> Software Integration Specialist
>
> Apache Member
> V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
> Apache Incubator PMC Member
>
> https://www.linkedin.com/pub/christian-mueller/11/551/642
>
> On Tue, Mar 17, 2015 at 6:58 PM, contactreji <contactreji@gmail.com> wrote:
>
>> Can we have a fix for this if its not available.
>>
>> Will be cool if next release can include InputStreamReader constructor
>> modified to allow specify UTF-8 unicode characterset reading.
>>
>> Something like
>>
>> FileInputStream fis = new FileInputStream(
>>                                 "<PathToPropertyFile>");
>> InputStreamReader isr = new InputStreamReader(fis, "UTF8");
>>
>> In our project, the fix was done by extending DefaultPropertyPlaceholder
>> class and overriding the method to instantiate InputStreamReader with
>> charset UTF-8 enforced.
>>
>>
>>
>> -----
>> Reji Mathews
>> Sr. Developer - Middleware Integration / SOA ( Open Source - Apache Camel
>> & Jboss Fuse ESB | Mule ESB )
>> LinkedIn - http://in.linkedin.com/pub/reji-mathews/31/9a2/40a
>> Twitter - reji_mathews
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Camel-Property-UTF-8-issues-tp5764281p5764291.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message