[FX.php List] Trying to send email with lots of accented letters

Nick whatdoyouwant at gmail.com
Mon Aug 13 20:09:44 MDT 2007


well, http://www.php.net/html_entity_decode might be a place to start
looking. either that or str_replace the & to &?  It really depends on
your data, as well as how much you trust your data..

your main problem is the é needs to be just é (without the
"amp;" ) to display on the page as é.

On 8/13/07, Bob Patin <bob at patin.com> wrote:
>
> I have a French client who's asked me to write a script for sending an
> email containing the results of various queries. So far so good...
> Except that when a word has accented letters, it comes out like this:
>
> Tache: Rough &amp;#233;lectricit&amp;#233; (confirm&amp;#233;)
>
> ... instead of looking like this:
>
> Tache: Rough Rough électricité (confirmé)
>
> I've already put the following META tag into the page that assembles the
> email text
>
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
>
> ... but I'm getting that ugly text above.
>
> Is there a PHP command that would fix this, or should I look elsewhere?
>
> Thanks,
>
> Bob Patin
> Longterm Solutions
> bob at longtermsolutions.com
> 615-333-6858
> http://www.longtermsolutions.com
>
>   CONTACT US VIA INSTANT MESSAGING:
>      AIM or iChat: longterm1954
>      Yahoo: longterm_solutions
>      MSN: tech at longtermsolutions.com
>      ICQ: 159333060
>
>
>
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20070813/245ae92c/attachment.html


More information about the FX.php_List mailing list