Re: how to use HTML Symbol Entities with mail() ?
| From: | Manuel Lemos | Date: | Sat, 03 Jul 2010 01:58:35 +0000 |
| Subject: | Re: how to use HTML Symbol Entities with mail() ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306658@lists.php.net to get a copy of this message | ||
Hello,
on 07/01/2010 10:34 AM cr.vegelin@gmail.com said the following:
> Hi List,
>
> I am working on generated emails, using the mail() function.
> Works fine, but when including characters like ∧ (= ∧) 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">∨</span>
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/