Re: Accented characters appearing as question marks in a unicoded mail
| From: | Erwin | Date: | Fri, 18 Oct 2002 07:07:58 +0000 |
| Subject: | Re: Accented characters appearing as question marks in a unicoded mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120465@lists.php.net to get a copy of this message | ||
> $headers .= "Content-type: text/html; charset=utf-8\r\n";
> everything works fine EXCEPT the "é" from "demandé" that is displayed
> as a "?" in the output mail.
Since you're using text/html as content-type, you should try using é
instead of é.
Use something like this on the test:
$trans = get_html_translation_table (HTML_ENTITIES);
$data = strtr($data,$trans);
or
$data = htmlentities( $data );
Maybe that'll help?
Grtz Erwin