RE: Unicode Problem

2007-08-31 Thread Peter Lum
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) );






RE: Unicode Problem

2007-08-30 Thread Peter Lum
Ok, will try next week. Thanks!

I set the DB as unicode too.
I am using GSM modem,. 

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






Re: Unicode Problem

2007-08-29 Thread seik
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) );




Re: Unicode Problem

2007-08-29 Thread Kyriacos Sakkas
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] **