From: Ashley Sheridan 
  To: Manuel Lemos 
  Cc: ; 
  Sent: Saturday, July 03, 2010 1:22 PM
  Subject: Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

  On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote: 

on 07/01/2010 10:34 AM said the following:
> Hi List,
> I am working on generated emails, using the mail() function.
> Works fine, but when including characters like &#8743 (= ∧) or ∨ (= 
> ∨)
> in the message, these characters are displayed as ? in the emails.
> Snippet:
> $headers  = 'MIME-Version: 1.0' . "\r\n";
> $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
> ...
> $bool = mail ($mailto, $subject, $body, $headers);
> also tested with:
> $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
> but without result.
> Any ideas ?
> TIA, Cor

When those characters appear as question marks is because you are using
a font in the messages that does not have characters with those codes.

Try including the sections of those characters with some span tags like
this <span style="font-family: font-name-here">&#8744;</span>


Manuel Lemos

Find and post PHP jobs

PHP Classes - Free ready to use OOP components written in PHP

  I don't believe it is the font issue, and don't forget that outputting HTML 
for an email is very different, so there are some things that you can specify 
that will be ignored by some email clients when they render your email.

  Those glyphs should be available to any system, as the email client should 
use whatever font on the system is set up for the extended glyphs where they 
are not available in the current font. What email clients are you testing this 
on? Are they web based, or local? It's a good idea to test HTML emails on a 
variety of email clients, as they all can behave very differently.



Sorry for the delay; was away a few days.
The special characters (&#8743; &#8744;) are part of <td> tags.
I tested both:
<td><span style="font-family: arial,courier,times">&#8744;</span></td>
<td style="font-family: arial,courier,times">&#8744;</td>
but without the desired result.

BTW, I wrote that the spec. characters are displayed in my email as ?
In fact they are displayed as little squares, but copying it here makes it a ? 
I am testing the HTML emails web based with Outlook Express,
with the Format - Encoding setting to UTF-8. 
The only reason to use the spec. chars is to simulate arrows, without <img>.

TIA, Cor

Reply via email to