Re: Character set
Andreas Fink <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
On Montag, Juli 14, 2003, at 05:18 Uhr, Michael Mulcahy wrote: > Hi All, > > In a similar problem to Davids (below), we are doing a test to an SMPP > SMSC and they are sending back message text encoded as 7 bit packed GSM > alphabet. > > Even though the SMPP driver calls: > charset_gsm_to_latin1(msg->sms.msgdata); > > this does not convert 7 bit packed GSM data to latin 1, it only > converts 8 bit packed GSM data. Should this function unpack 7 bit data > or > is it presumed that will always only get 8 bit GSM encoded characters? gsm_to_latin1 is converting the charsets only there's an additional call before which does the 7 to 8 bit conversion. This is dependent on the DCS value. If the DCS value says its 8 bit packed data, it wont do the 7 to 8 bit conversion of course. > Andreas Fink Global Networks Switzerland AG ------------------------------------------------------------------ Tel: +41-61-6666333 Fax: +41-61-6666334 Mobile: +41-79-2457333 Global Networks, Inc. Clarastrasse 3, 4058 Basel, Switzerland Web: http://www.global-networks.ch/ [email protected] ------------------------------------------------------------------