Yes, there are similar issues on the list, but I couldn't find a real
solution for it.
There were some chats about hardcoding the DCS or asking the operator to
alter the charset, but there must be some possibility to make kannel
talk ISO ... or not?!
But I didn't get this UCS2-thing...
The systems "feeding" kannel use ISO-8859-15, my service-provider is
expecting ISO-8859-1, kannel produces IA5. So where is the benefit to
make ISO-8859-15 to UCS2 before I post it to kannel? By the way: I have
set up 4 SMSC from diffrent vendors (and I'm talking about real SS7 SMSC
in MNO enviroments, ok all in western europe) but I have never seen a
SMSC using UCS2 or UTF-16 as primary charset, that would be a 2 byte
encoding for a 7 bit charset. And I absolutly don't want kannel to talk
UCS2 for that would cut down the payload per message to 70 characters.
Regards
Falko
seikath schrieb:
> Search the list for identical issues, they are common
> the smsc uses UCS2 anyway
> use iconv to convert from your german encofing to UCS2
>
> example of perl implementation of Bulgarian Cyrilic cp1251
> before xml post to be injected
> if ($data->{cyr} == 1) {
> $encoding="ucs-2be";
> $converter = Text::Iconv->new("cp1251", $encoding);
> $data->{sms}= $converter->convert($data->{sms});
> $data->{sms}= hex_encode($data->{sms}, '%');
> $coding=2;
> $alt_dcs=-1;
> }
>
> php is much convenient
>
> Falko Ziemann wrote:
>
>> Hi,
>>
>> I try to send some special character (german umlauts äöü) over a smpp
>> connection to a smsc running iso-8859-1 charset. My config says:
>> alt-charset = ISO-8859-1
>>
>> But I see in the connection log:
>> [...]
>> 2008-11-11 16:10:35 [4332] [12] DEBUG: data: 78 20 7c 7b 7e 24 00
>> 20 31 36 3a 31 30 x |{~$. 16:10
>> [...]
>> which are umlauts in IA5 (7c 7b 7e).
>>
>> gw_config.h says: #define HAVE_ICONV_H 1
>> iconv -l contains ISO-8859-1
>>
>> Can I anyone tell how get kannel to accept the alt-charset? The provider
>> only supports 8859-1 (yeah, that's sick, I know...)
>>
>> Thanks
>> Falko
>>
>>
>>
>>