Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2656311E63 for ; Sun, 27 Apr 2014 08:40:30 +0000 (UTC) Received: (qmail 61268 invoked by uid 500); 27 Apr 2014 08:40:26 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 61188 invoked by uid 500); 27 Apr 2014 08:40:24 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 61076 invoked by uid 99); 27 Apr 2014 08:40:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Apr 2014 08:40:21 +0000 Date: Sun, 27 Apr 2014 08:40:21 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-7224) camel-smpp - fails to correctly send messages that require UCS-2 encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-7224: ------------------------------- Summary: camel-smpp - fails to correctly send messages that require UCS-2 encoding (was: fails to correctly send messages that require UCS-2 encoding) > camel-smpp - fails to correctly send messages that require UCS-2 encoding > ------------------------------------------------------------------------- > > Key: CAMEL-7224 > URL: https://issues.apache.org/jira/browse/CAMEL-7224 > Project: Camel > Issue Type: Bug > Components: camel-smpp > Affects Versions: 2.12.2 > Environment: any > Reporter: Daniel Pocock > Fix For: 2.12.4, 2.13.1, 2.14.0 > > > If I try to send a string without any config options or headers to indicate alphabet/data coding/encoding, it appears to be sent using an 8 bit character set even if a 16 bit UCS-2 encoding is required. > If I try to set CamelSmppAlphabet=-1 (for unknown) as a header, an invalid message is sent to the SMPP peer and it is rejected with SMPP error code 00000401 > If I try to set alphabet=-1 in the endpoint config though and if I also set CamelSmppDataCoding=8 then it correctly sends a UCS-2 message. > Looking at the code (particularly the method SmppSmCommand.determineCharset()), it seems that it can ONLY send UCS-2 if alphabet == UNKNOWN_ALPHABET. Using the value UNKNOWN_ALPHABET (-1) as a header triggers the problem with the SMPP peer so I can only set that value in the endpoint config. This determineCharset() method should also recognise alphabet == ALPHA_UCS2 -- This message was sent by Atlassian JIRA (v6.2#6252)