On Wed, Apr 16, 2008 at 8:37 PM, Mickael - System Administrator (WebD
Services) <[EMAIL PROTECTED]> wrote:
>
>  Hello,
>  By default, the characters "éèê etc. .." Not working.

You can try using the default GSM7 alphabet.
The only character that is missing in this aphabet is ê.

>
>
> Here is the error:
>  Charset or body misformed, rejected
>
>  My PHP code: (the $content and the PHP script is UTF-8 encoded)
>
>                  $text = iconv('UTF-8', 'UCS-2', $content);
>                  $url =
> "http://localhost:1425/outgoing/reports_kannel.php?number=%p&senderid=%P&smsc=%i&dlr-type=%d&time=%t&msgid=";
> . $msgid;
>
>                  $gateway = "username=" . urlencode('myuser')."&";
>                  $gateway .= "password=" . urlencode('mypass')."&";
>                  $gateway .= "to=" . urlencode($number)."&";
>                  $gateway .= "from=" . urlencode($senderid)."&";
>                  $gateway .= "text=" . urlencode($content)."&";
>                  $gateway .= "dlr-url=".urlencode($url)."&";
>                  $gateway .= "dlr-mask=23&"; // 31 = All
>                  $gateway .= "charset=UTF16-BE&";
>                  $gateway .= "coding=2&";
>                  $gateway .= "smsc=1";
>
>  Thank you !
>  Mickael

Kannel uses iconv internaly. You don't have to convert the message
text in your script.

comment the line :
                 $text = iconv('UTF-8', 'UCS-2', $content);

and set
                $gateway .= "charset=UTF-8";
                $gateway .= "coding=2";


BR, Jovan

Reply via email to