i'm assuming your code is PHP, but I used the following to send
Chinese messages from PHP 5, and it worked great. [note: I work hard
to keep all our code and text in UTF-8 format internally]:
$url = '/cgi-bin/sendsms?username=' . KANNEL_USER_NAME
. '&password=' . KANNEL_PASSWORD . '&charset=UCS-2&coding=2'
. "&to={$in_phoneNumber}"
. '&text=' . urlencode(iconv('utf-8', 'ucs-2', $in_msg));
$results = file('http://' . SITECONFIG_KANNEL_HOST . ':' .
SITECONFIG_KANNEL_PORT . $url);
Works just swell here. This is with Chinese mobile phone providers
(China Mobilecom provides the SIM card for our outgoing modem).
marc.
On 7/17/07, Peter Lum <[EMAIL PROTECTED]> wrote:
Hi
I have tried as many times and as many possibilities and still I can't get
it.
Just how to send chinese SMS? I kept getting garbage....
English is ok.
I use coding=2
I use $ucs2text = mysql_iconv($in_msg, 'utf-8', 'ucs2' ); to convert to ucs2
I use urlencode( $ucs2text ) before actual doing the GET request to Kannel.
What am I doing wrong here???
HELP!!
Peter