FAQ
Repository: camel
Updated Branches:
   refs/heads/master 3c58e2110 -> 3ce49256f


CAMEL-10053: added note to documentation about characterset-conversion and removal of header/property


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3ce49256
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3ce49256
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3ce49256

Branch: refs/heads/master
Commit: 3ce49256f3f6029962cf36846156045ef701adf4
Parents: b7e1409
Author: Arno Noordover <anoordover@users.noreply.github.com>
Authored: Wed Jun 15 22:36:36 2016 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Jun 16 07:55:44 2016 +0200

----------------------------------------------------------------------
  components/camel-bindy/src/main/docs/bindy.adoc | 15 +++++++++++++++
  1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3ce49256/components/camel-bindy/src/main/docs/bindy.adoc
----------------------------------------------------------------------
diff --git a/components/camel-bindy/src/main/docs/bindy.adoc b/components/camel-bindy/src/main/docs/bindy.adoc
index 2a2a306..fd410a6 100644
--- a/components/camel-bindy/src/main/docs/bindy.adoc
+++ b/components/camel-bindy/src/main/docs/bindy.adoc
@@ -1753,6 +1753,21 @@ from("file://inbox")
      .end();
  ----------------------------------------------------------------------------------

+Take care of the fact that Bindy uses CHARSET_NAME property or the CHARSET_NAME header as define in the
+Exchange interface to do a characterset conversion of the inputstream received for unmarshalling.
+In some producers (e.g. file-endpoint) you can define a characterset. The characterset conversion
+can already been done by this producer. Sometimes you need to remove this property or header from the
+exchange before sending it to the unmarshal. If you don't remove it the conversion might be done twice
+which might lead to unwanted results.
+
+[source,java]
+---------------------------------
+from("file://inbox?charset=Cp922")
+ .removeProperty(Exchange.CHARSET_NAME)
+ .unmarshal("myBindyDataFormat")
+ .to("direct:handleOrders");
+---------------------------------
+
  [[Bindy-Marshaling]]
  Marshaling
  ++++++++++

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 2 of 5 | next ›
Discussion Overview
groupcommits @
categoriescamel
postedJun 16, '16 at 6:34a
activeJun 16, '16 at 6:34a
posts5
users1
websitecamel.apache.org

1 user in discussion

Davsclaus: 5 posts

People

Translate

site design / logo © 2017 Grokbase