SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat May 25, 2024 12:07
SMSTools3 Community » Help and support Bottom

[solved] Strang text output

  This topic is locked

Page:  1

Author Post
Member
Registered:
Apr 2010
Location: Malaysia
Operating system name and version: Linux CentOS 4.8
Version of smsd: 3.1.11
Smsd installed from: sources
Name and model of a modem / phone: Wavecomm Fastrak Supreme 10
Interface: Serial

I have a web form where folks will key in their request. Upon submitting the form, the web script will invoke smsd to send the content of the web form to me.

If the web form contain special chracters like brackets, I noticed that left bracket will be converted to
& # 40 ;
and right bracket to
& # 41 ;

PLEASE NOTE that those characters have no spaces in between them. I am not able to put them exactly here as there will be converted to their 'exact' form.

What do I need to do to rectify this ? Please help. TIA.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
If using PHP, run this kind of a call before writing text to the SMS file:

$message_body = html_entity_decode($message_body);


Also check this script: smstest.php. It uses post method, but does not convert characters to HTML entities.

Member
Registered:
Apr 2010
Location: Malaysia
Topic owner
Thanks Keke. html_entity_decode does the trick.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.