NowSMS is sending garbled messages | Search |
NowSMS Support Forums ⬆ NowSMS Support - SMS Issues ⬆ Archive through May 07, 2008 ⬆ |
◄ ► |
Author | Message | |||
Kristian Hals New member Username: Khals Post Number: 3 Registered: 02-2008 |
I've followed and used the PHP script you guys posted here in a earlier thread, but am having problems with sending messages that include non english characters. A example would be the 'ó' character, which ends up looking like a [] (square symbol) on the receivers phone. This does not happen when sending through the "menu driven web interface" page. Please advice | |||
Kristian Hals New member Username: Khals Post Number: 4 Registered: 02-2008 |
Finally! I found the solution after days of pulling hairs out of my head :s Solution: $msgText = rawurlencode(utf8_encode($msgText)); | |||
Kristian Hals New member Username: Khals Post Number: 5 Registered: 02-2008 |
Oh man.. Now I'm facing the same problem, only with the 2Way script. It seems as though Now SMS is not receiving in the correct format for. The above solution does not work | |||
Simranjit Singh New member Username: Manchanda_17 Post Number: 31 Registered: 06-2007 |
can u show me your script ?? May I help u out of this E-mail:manchanda_17@rediffmail.com | |||
Kristian Hals New member Username: Khals Post Number: 6 Registered: 02-2008 |
Hi Simranjit and thanks for your interest. Now SMS' 2-Way settings are as follows: Character Set: uft-8 SMS Command Prefix: * Receive Phone Number(s): Command to Execute: http://localhost/sms.php?message=@@FULLSMS@@&sender=@@SENDER@@&smsprefix=@@SMSPR EFIX@@&sms=@@SMS@@&recip=@@RECIP@@ the sms.php file look's like this: <?php $link = mysql_connect('localhost', 'user', 'password'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('now_sms', $link) or die('Could not select database.'); $sql="INSERT INTO inbox (message,sender,smsprefix,sms,recip) VALUES ('$message','$sender','$smsprefix','$sms','$recip')"; if (!mysql_query($sql,$link)) { die('Error: ' . mysql_error()); } mysql_close($link) ?> Thanks again | |||
Kristian Hals New member Username: Khals Post Number: 12 Registered: 02-2008 |
Is Now SMS' support staff on holiday or something? |