Re: how to use HTML Symbol Entities with mail() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

on 07/01/2010 10:34 AM cr.vegelin@xxxxxxxxx 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>

-- 

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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux