To send unicode text, you need to convert it to UCS-2 (and then urlencode),
and add coding=2 parameter to url
in php you can use either iconv (builtin) or recode (requires recode
extension) function to convert text to UCS-2 encoding

Regards,
  Konstantin

On Thu, Oct 8, 2009 at 9:32 PM, <[email protected]> wrote:

> Hi,
>
> I am unable to send unicode sms and i can receive only the html code
> decimal value of the message in my mobile.
> The url is:
>
> $URL =
>
> "/cgi-bin/sendsms?username=".USERNAME."&password=".PASSWORD."&from=mandar"."&to=$to&text=".urlencode($text)."&dlr-mask=31"."&dlr-url=".urlencode("
> http://192.168.111.222/cgi-bin/sms.cgi?smsc=%i&ts=%t&destination=%p&source=%P&service=%n&report=%A&dlrvalue=%d&smsid=%i&smsID=$smsid&account=%o&billinginfo=%B
> ")."&smsc=syscomes4"."&charset=UTF-8"."&coding=2";
>
> and kannel configuration is:
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> status-password = foo
> admin-deny-ip = ""
> admin-allow-ip = "127.0.0.1"
> log-file = "/var/log/kannel.log"
> log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> unified-prefix = "00358,0"
> #access-log = "access.log"
> #store-file = "kannel.store"
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
> dlr-storage = mysql
>
> smsc=smpp
> smsc-id=syscomes4
> allowed-smsc-id =syscomes4
> #denied-smsc-id =syscomes1
> interface-version=34
> host=xxx.xxx.xxx.xxx
> port=xxxx
> #receive-port=7776
> smsc-username=nisith
> smsc-password=1234
> system-id=
> transceiver-mode = 0
> system-type=0
> dest-addr-ton=1
> dest-addr-npi=1
> transceiver-mode=1
> alt-charset=UTF-8
> #esm_class=1
> msg-id-type = 0x02
>
> group = mysql-connection
> id = mydlr
> host = localhost
> username = root
> password = "HcoFbqa4S8U2"
> database = kannel
> # max count of connections that will be opened for dbpool
> # default is 1
> max-connections = 1
>
> group = dlr-db
> id = mydlr
> table = dlr
> field-smsc = smsc
> field-timestamp = ts
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc
>
> group = sendsms-user
> username = xxx
> password = xxx
> billinginfo=%B
> max-messages = 12
> concatenation = true
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> log-file = "/tmp/smsbox.log"
> log-level = 0
> mo-recode=true
>
> Thanks and regards...
>
>
>
>

Reply via email to