Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E13FCED01 for ; Thu, 24 Jan 2013 09:42:30 +0000 (UTC) Received: (qmail 19587 invoked by uid 500); 24 Jan 2013 09:42:30 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 19469 invoked by uid 500); 24 Jan 2013 09:42:29 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 19358 invoked by uid 99); 24 Jan 2013 09:42:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 09:42:26 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 09:42:18 +0000 Received: from winxedgeeu04.exchange.xchg (winxedgeeu04.schlund.de [172.23.1.15]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MCk6A-1U7hEi0z0k-009PSB; Thu, 24 Jan 2013 10:41:58 +0100 Received: from winxhubeu05.exchange.xchg (172.23.1.149) by winxedgeeu04.exchange.xchg (172.23.1.15) with Microsoft SMTP Server (TLS) id 8.3.279.5; Thu, 24 Jan 2013 10:41:20 +0100 Received: from winxbede40.exchange.xchg ([172.23.1.204]) by winxhubeu05.exchange.xchg ([172.23.1.149]) with mapi; Thu, 24 Jan 2013 10:41:47 +0100 From: "Walzer, Thomas" To: "users@camel.apache.org" Date: Thu, 24 Jan 2013 10:41:46 +0100 Subject: Bindy/FixedLength/encoding/optional fields Thread-Topic: Bindy/FixedLength/encoding/optional fields Thread-Index: Ac36FwaLu/gGEeyDQkWXtULldD8PgQ== Message-ID: <5DD232F9-0E80-47F8-BA5E-3E4727498986@integratix.net> Accept-Language: de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE x-provags-id: V02::ipRVnleVMeURlauYuN+iFwO2+zO+bbgLvdv9rKTDfRZtK FKoR8aE2f0mKXPVRVj6oASiEtRJQ3sGjPc8ojwl8g0nTTsDI5G OX2ljHSU7OFaRqyNVgzLUZZeCUK7ENEt7IZcNEpXz5Bb9eaR6q mam6xcgmvIhbrhUOlWUgM1ASffeUB/Yh1w4PVTmGkL426RY Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I see strange behaviour in camel-bindy: 1) When I unmarshal a fixed-length file I get errors when the file is encod= ed in e.g. UTF-8. It seems that characters that need multiple bytes to enco= de confuse the parser/scanner. There was a JIRA with regard to bindy-csv bu= t nothing bindy-fixed. 2) The length parameter in the fixedlength-annotation is required (otherwis= e it is 0). Wouldn=B4t it be nice if this were computed. It would be great = to have optional fixed-length fields (like in old host files). Or do I have= to go the smooks-route?=20 Regards, Thomas.