0
PHP send email script characterset
New Here
,
/t5/dreamweaver-discussions/php-send-email-script-characterset/td-p/3122212
Nov 26, 2010
Nov 26, 2010
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
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/php-send-email-script-characterset/m-p/3122213#M190553
Nov 27, 2010
Nov 27, 2010
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";
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

