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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Entities not recognized in mail with CDonts 1

Status
Not open for further replies.

Stoemp

Programmer
Sep 25, 2002
389
BE
Hi,

I'm trying to put up a mailing system to inform our customers with the latest news from our firm and products. I copy-pasted some text from an e-mail I received from a supplier and sent it out with my mailing system. In the text there are some signs with registered trademark (®) that I copy-pasted too. These characters show in the textarea where they are pasted but when I receive the mail, I see that these characters are replaced by the entity code for ® : '& r e g ;'. How can this problem be fixed?

Thanks,
Steven
 
Try copying the 'R' symbol from Word into your HTML Page.
Here's one I made earlier ®

Hope it works...
 
That's what I did. I have copied the ® symbol in the textfield where I typed the rest of the e-mail. It's in a HTML form. In the form I can type in a title and a bodytext for the e-mail I want to send to several people. I copy-pasted the text with the symbols in it to the textarea and submitted the form. When I receive the mail, the ® symbols are replaced by the entity name.
 
the problem is that the mail will go in plain text format by default ins ASP. if u want those special signs then u have to encode it to HTML format. & r e g ; is how we wold add the ® sign to a HTML page. but if u slater send it as text it will reconvert back to the original way...

do a search on this forum for sending HTML encoded messages...

Known is handfull, Unknown is worldfull
 
Thanks, I managed to send my e-mail as HTML, but the title still does not recognize the entities. I suppose this isn't possible or am I wrong?
 
the title? u can send only the body in HTML. did u try to insert that in the subject?

Known is handfull, Unknown is worldfull
 
I used a title with an entity too, but that didn't work out very good. Now I only use entities in the body of the mail.
 
does that work?

Known is handfull, Unknown is worldfull
 
It works, but only if I send the e-mail as HTML. Plain text mail uses the entity code instead of translating the entity (pretty obvious because entities are HTML).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top