hi Peter,

first, do NOT urldecode the text, its ummm ... non needed
:)
 
next,
it ups to how you set the smsc type and settings
do you use gsm modem or smpp link ?



cheers

seik



-----Original Message-----
From: Peter Lum [EMAIL PROTECTED]
Sent: 29 Август 2007 г.
To: seik
Subject:Unicode Problem 

> 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) );


Reply via email to