Hello,
By default, the characters "éèê etc. .." Not working.

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



Remon Magdy a écrit :
Hello There,

You should convert your text to *UCS-2 encoding *and use parameters *coding=2 and charset=UTF16-BE

*Regards,
Remon*
*
Aamir Jamil Rao wrote:
Hi There,

I know this question has been asked again and again , but I couldn't find
any example of sending utf-8 / Arabic messages using kannel via PHP or perl.
Can someone point me to an example or to some document/mailing list post
please.

Thanks!

Aamir





Reply via email to