Hi Seik Yes, you are right. It is just a config setting in the kannel.conf file. Just set mo-recode to true and everything is fine now.
Thank you so much!!! Peter -----Original Message----- From: seik [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 29, 2007 8:48 PM To: Peter Lum Cc: users@kannel.org Subject: Re: Unicode Problem 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) );