PDA

View Full Version : Accented characters in mail sent by PHP


Transistor
12-11-2002, 11:21 PM
How can I make accented characters (αιρ...) appear correctly in a mail sent by PHP?
I have tried these headers:
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
But strange characters appear where the accented characters should be.

I don't think it is the e-mail client, I recieve other people's mail with accented characters all right, and although I have tried to copy the headers recieved by these messages, I just can't get accented characters to show up.

Steven_Smith
12-12-2002, 02:58 AM
Maybe try UTF-8

Steve

Steven_Smith
12-12-2002, 03:00 AM
$headers .= "Content-type: text/plain; charset=ISO-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";


$headers .= "Content-type: text/plain; charset=UTF-8\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";