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!

CFMail and special characters

Status
Not open for further replies.

nero

Programmer
Sep 11, 2000
25
AU
I have an issue with cfmail and how it handles special characters.

eg. a form variable passing a ' character will have it interpreted by cfmail as ’

I have tried writting the variable to a txt file and then reading it to a variable to mail out, but I have the same result.

I am sending out the mail in plain text format.

Any help is most appreciated.

Cheers
 
Hi Nero,
Not sure if this will work, but may be worth a try...

Find out what the ASCII value of that character is by doing something like this:
<cfset tick=&quot;`&quot;>
<cfoutput>Tick: #Asc(tick)#</cfoutput>

Let's say the value is 96
Then in your mail message, represent it like this:
#Chr(96)#

See if that helps
Cheers,
xor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top