Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

converting characters in email

Status
Not open for further replies.

teroy

Programmer
Oct 17, 2000
67
AU
Hi there,
I have a form in html which passes the value of a textarea to a perl script which emails out the value.

All works fine. However...users of the script copy and paste text from Microsoft Word which has smart quotes in it. It displays fine on the web..but when the user receives an email the smart quotes get converted to

“”

Is there some sort of encoding i can use or a work around that anyone knows of?

Thanks in advance
 
You can translate the character(s) used for the smart quotes to standard quotes using a simple seach-and-replace regular expression. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top