Hi,

Do you know your provider’s default encoding (when dcs=0 or 241)?
Alt-charset insteucts kannel to send payload to smsc encoded as utf-8.
I’ve seen lately smscs supporting this but then it’s also a question of 
transcoding on the smsc side. Remember, on the handset you have only two 
options, gsm 7-bit which gives you up to 160 chars per sms and ucs-2 which 
gives you up to 70.
Go back to basics. Detect the default smsc alphabet. Comment the alt-charset 
line, send the @ sign (leave charset and coding empty) and check if you get @ 
or inverted exclamation sign ¡
If first, you have gsm default smsc alphabet, if ¡, you have to set alt-charset 
to Latin-1 or something.
Alt-dcs=1 is used when the default smsc alphabet is not set to gsm 7-bit. If 
you set alt-dcs=1, don’t set alt-charset and you know the set of characters you 
can expect on the handset. Remember, tou always address to smsbox in utf-8, and 
if you have characters beyond gsm 7-bit you must flag coding=2

BR,
Davor

> On Jul 18, 2020, at 04:48, Eichi <grimoire.of.al...@gmail.com> wrote:
>
> Hi There,
>
> The test was sent with alt-charset=utf-8 in the configuration and with 
> coding=0 and alt-dcs=1 in the smspush cgi. With alt-dcs=0 the message 
> reveiced on phone is B¤B!CèCΠC_CÆB'B?C¤C6C1C< but by using alt-dcs=1 it 
> becomes $@[\\]^_`{|}~ instead.
>
> While it will work when encoded using ucs2, it will reduce the character 
> count. Could it be that the provider is modifying it as sending 
> @£$¥èéùìòÇØøÅåΔΦΓΛΩΠΨΣΘΞ€ÆæßÉ with the alt-dcs=1 settings works.
>
>
> Best Regards.
>
>
>> On 7/17/2020 4:45 PM, Davor Spasoski wrote:
>> 1. Some of your characters are supported in the default GS 7-bit alphabet: 
>> https://www.developershome.com/sms/gsmAlphabet.asp
>> 2. All of the characters are supported if you use UCS-2 encoding.
>>
>> - These are the only two universally supported alphabets on handsets.
>> - You encode your request towards kannel (smsbox) using UTF-8 encoding. For 
>> 1 nothing to set, for 2, you need to set coding=2 and charset=utf-8
>>
>> For 1, some of your characters will be transcoded to ?
>>
>> Bottom line, check your encoding towards kannel.
>>
>> Davor Spasoski
>>
>>
>> -----Original Message-----
>> From: users <users-boun...@kannel.org> On Behalf Of Eichi
>> Sent: Friday, July 17, 2020 4:23 AM
>> To: users <users@kannel.org>
>> Subject: GSM Characters
>>
>> Hi Kannel Users,
>>
>> Please advise if these characters (¤¡ÄÖÑܧ¿äöñü) are supported in Kannel? 
>> Every time I send it, these characters is converted to $@[\\]^_`{|}~ instead.
>>
>>
>> 1829895:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP[smppConnection2]:
>> Sending PDU:
>> 1829896:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP PDU 0x7f6c04003ea0 dump:
>> 1829897:2020-07-17 09:56:19 [4432] [7] DEBUG:   type_name: submit_sm
>> 1829898:2020-07-17 09:56:19 [4432] [7] DEBUG:   command_id: 4 = 0x00000004
>> 1829899:2020-07-17 09:56:19 [4432] [7] DEBUG:   command_status: 0 =
>> 0x00000000
>> 1829900:2020-07-17 09:56:19 [4432] [7] DEBUG:   sequence_number: 20013 = 
>> 0x00004e2d
>> 1829901:2020-07-17 09:56:19 [4432] [7] DEBUG:   service_type: NULL
>> 1829902:2020-07-17 09:56:19 [4432] [7] DEBUG:   source_addr_ton: 0 =
>> 0x00000000
>> 1829903:2020-07-17 09:56:19 [4432] [7] DEBUG:   source_addr_npi: 1 =
>> 0x00000001
>> 1829904:2020-07-17 09:56:19 [4432] [7] DEBUG:   source_addr: "xxxxx"
>> 1829905:2020-07-17 09:56:19 [4432] [7] DEBUG:   dest_addr_ton: 1 =
>> 0x00000001
>> 1829906:2020-07-17 09:56:19 [4432] [7] DEBUG:   dest_addr_npi: 1 =
>> 0x00000001
>> 1829907:2020-07-17 09:56:19 [4432] [7] DEBUG:   destination_addr: "xxxxxx"
>> 1829908:2020-07-17 09:56:19 [4432] [7] DEBUG:   esm_class: 3 = 0x00000003
>> 1829909:2020-07-17 09:56:19 [4432] [7] DEBUG:   protocol_id: 0 = 0x00000000
>> 1829910:2020-07-17 09:56:19 [4432] [7] DEBUG:   priority_flag: 0 =
>> 0x00000000
>> 1829911:2020-07-17 09:56:19 [4432] [7] DEBUG: schedule_delivery_time: NULL
>> 1829912:2020-07-17 09:56:19 [4432] [7] DEBUG:   validity_period: NULL
>> 1829913:2020-07-17 09:56:19 [4432] [7] DEBUG: registered_delivery: 0 =
>> 0x00000000
>> 1829914:2020-07-17 09:56:19 [4432] [7] DEBUG: replace_if_present_flag: 0 = 
>> 0x00000000
>> 1829915:2020-07-17 09:56:19 [4432] [7] DEBUG:   data_coding: 241 =
>> 0x000000f1
>> 1829916:2020-07-17 09:56:19 [4432] [7] DEBUG:   sm_default_msg_id: 0 =
>> 0x00000000
>> 1829917:2020-07-17 09:56:19 [4432] [7] DEBUG:   sm_length: 12 = 0x0000000c
>> 1829918:2020-07-17 09:56:19 [4432] [7] DEBUG:   short_message:
>> "$@[\\]^_`{|}~"
>> 1829919:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP PDU dump ends.
>> 1829920:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP[smppConnection2]:
>> throughput (1.00,15.00)
>> 1829921:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP[smppConnection2]:
>> throughput (1.00,15.00)
>> 1829922:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP[smppConnection2]: Got
>> PDU:
>> 1829923:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP PDU 0x7f6c04003ea0 dump:
>> 1829924:2020-07-17 09:56:19 [4432] [7] DEBUG:   type_name: submit_sm_resp
>> 1829925:2020-07-17 09:56:19 [4432] [7] DEBUG:   command_id: 2147483652 =
>> 0x80000004
>> 1829926:2020-07-17 09:56:19 [4432] [7] DEBUG:   command_status: 0 =
>> 0x00000000
>> 1829927:2020-07-17 09:56:19 [4432] [7] DEBUG:   sequence_number: 20013 = 
>> 0x00004e2d
>> 1829928:2020-07-17 09:56:19 [4432] [7] DEBUG:   message_id: "0000318BF1"
>> 1829929:2020-07-17 09:56:19 [4432] [7] DEBUG: SMPP PDU dump ends.
>>
>> Best Regards.
>>
>>
>>
>> ________________________________
>>
>> Disclaimer: A1 Makedonija DOOEL Skopje
>> This e-mail (including any attachments) is confidential and may be protected 
>> by legal privilege. If you are not the intended recipient, you should not 
>> copy it, re-transmit it, use it or disclose its contents, but should return 
>> it to the sender immediately and delete your copy from your system. Any 
>> unauthorized use or dissemination of this message in whole or in part is 
>> strictly prohibited. Please note that e-mails are susceptible to change. A1 
>> Makedonija DOOEL Skopje shall not be liable for the improper or incomplete 
>> transmission of the information contained in this communication nor for any 
>> delay in its receipt or damage to your system.
>> Please, do not print this e-mail unless it is necessary! Think about saving 
>> the environment!
>>
>> Напомена: А1 Македонија ДООЕЛ Скопје
>> Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да 
>> биде заштитена со правни привилегии. Доколку не сте лицето на кое таа му е 
>> наменета пораката, не треба да ја копирате, дистрибуирате или да ја 
>> откривате нејзината содржина, туку веднаш да ја препратите до испраќачот и 
>> да ја избришете оригиналната порака и сите нејзини копии од Вашиот 
>> компјутерски систем. Секое неовластено користење на оваа порака во целост 
>> или делови од истата е строго забрането. Ве молиме да забележите дека 
>> електронските пораки се подложни на промени. А1 Македонија ДООЕЛ Скопје не 
>> презема одговорност за несоодветно или нецелосно пренесување на информациите 
>> содржани во оваа комуникација, ниту пак за било какво задоцнување на приемот 
>> или оштетувања на вашиот систем.
>> Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
>> природата!

________________________________

Disclaimer: A1 Makedonija DOOEL Skopje
This e-mail (including any attachments) is confidential and may be protected by 
legal privilege. If you are not the intended recipient, you should not copy it, 
re-transmit it, use it or disclose its contents, but should return it to the 
sender immediately and delete your copy from your system. Any unauthorized use 
or dissemination of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change. A1 Makedonija DOOEL Skopje 
shall not be liable for the improper or incomplete transmission of the 
information contained in this communication nor for any delay in its receipt or 
damage to your system.
Please, do not print this e-mail unless it is necessary! Think about saving the 
environment!

Напомена: А1 Македонија ДООЕЛ Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. А1 Македонија ДООЕЛ Скопје не презема одговорност за несоодветно или 
нецелосно пренесување на информациите содржани во оваа комуникација, ниту пак 
за било какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!

Reply via email to