Peter Lum wrote:
> Hi
>  
> I set up Kannel to to a http get whenever a sms arrives at the smsbox.
> However, if I sent unicode characters from my phone, what I eventually
> store in my MySQL is junk.
>  
> Is the line below ok to retrieve the message:
>  
>   $rcvMessage = $_GET["text"];
>   $SQL_rcvMessage = iconv("windows-1252", "utf-8", urldecode
> ($rcvMessage) );
>  
> whenI store into the database, I use values like
>  
> _utf8'" . addslashes($SQL_rcvMessage) . "'
>  
> What part did I do wrong here?
>  
> PS: I also tried
> $SQL_rcvMessage = iconv("ucs-2", "utf-8", urldecode ($rcvMessage) );
Also just checking, the database table is set to UTF-8, and whatever is
reading from the database is UTF-8 capable ?

Kyriacos Sakkas

-- 
Kyriacos Sakkas
Development Team
Netsmart
Tel: + 357 22 452565
Fax: + 357 22 452566
Email: [EMAIL PROTECTED]
http://www.netsmart.com.cy

Taking Business to a New Level!

** Confidentiality Notice: The information contained in this email
message may be privileged, confidential and protected from disclosure.
If you are not the intended recipient, any dissemination, distribution,
or copying of this  email message is strictly prohibited.
If you think that you have received this email message in error, please
email the sender at [EMAIL PROTECTED] **


Reply via email to