| Home  |  | About  |  | Contact  |  | Board index » PHP contact form » Report bugs 
Register  |   FAQ   |  Search  |  Login
Host : WEBHOSTINGPAD.COM
  • Free domain name
  • Unlimited Disk Space
  • Unlimited Bandwidth
  • Unlimited sub domain
  • Host unlimited domain
  • Unlimited MySql database
  • Unlimited Parked Domains
  • SSI (Server Side Includes)
  • Weekly Backups
  • And much more..
  • 1.99 USD per month

Visit : webhostingpad.com

Hosting: Free trial
FatCow is one of the leading webhost in the internet today. FatCow Web Hosting. Free Trial , Free Setup, Free Support, All risk free!
Visit: FatCow.com


Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Receive unknown characters
PostPosted: Sat Dec 19, 2009 3:41 pm 
Offline

Joined: Sat Dec 19, 2009 3:30 pm
Posts: 1
Hello i receive few unknown characters like '%u201C', '%u201D' in the body of email. Currently i'm using ajax contact form auto responder v-2.1. How do I fix this ?


Top
 Profile E-mail  
 
 Post subject: Re: Receive unknown characters
PostPosted: Sun Dec 20, 2009 2:17 am 
Offline
Site Admin

Joined: Wed Nov 05, 2008 8:04 am
Posts: 90
Those unknown characters are come from MsWord smart tag. If you send message which is copied from msword document then such characters may come. To prevent it happening again you have to convert those characters into their ASCII equivalents.
Open file /mail/index.php for editing. You can use windows WordPad or any PHP editor. At line-415 find the string
Quote:
$message = $this->strip_slashes(rawurldecode($_POST["message"]));

After that line add the following three lines.
Code:
$message =str_replace('%u201C','"',str_replace('%u201D','"', $message));
$message =str_replace("%u2018","'",str_replace("%u2019","'",$message));
$message= str_replace("%u2013","-",$message);

Save that document and upload it to your server.


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
©  2008,   http://ramui.com   All rights reserved.
Powered by phpBB