Re: Accented characters appearing as question marks in a unicoded mail

From: Date: Fri, 18 Oct 2002 15:46:47 +0000
Subject: Re: Accented characters appearing as question marks in a unicoded mail
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-120524@lists.php.net to get a copy of this message
Thks, I'll try those :) And as for the &eacute, I would have preferred an easier way to provide accented characters, since, when using dreamweaver, I can use "é" character when creating unicoded html files. Or is dreamweaver coding the "é" correctly for me? Erwin wrote:
$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


« previous php.general (#120524) next »