Copy link to clipboard
Copied
Hi all,
I'm using the following headers for a PHP send email script;
$headers='MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html;charset=iso-8859-1' . "\r\n";
$headers .= 'From: website name' . "\r\n";
However some of the characters are coming out unencoded in the email that is received, such as;
L\' Hôtel Belvédére
Can anyone tell me how I need to set the characterset in the header so this doesn't happen?
Thanks
Copy link to clipboard
Copied
Change this:
$headers .= 'Content-type: text/html;charset=iso-8859-1' . "\r\n";
to this:
$headers .= 'Content-type: text/html;charset=utf-8' . "\r\n";