3
I need a help for a situation that seemed simple, I have a form with a comment field and when sending this comment by email the same appears all disfigured, I’m using the phpmailer.
The code page on the contact page looks like this:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
And on the process page I’ve tried some tips passed, but none successfully, I’ve tried the utf8_decode, utf8_encode, '=? UTF-8? B? '. base64_encode($message). '?= ', I have already put in the process page the following codes:
ini_set('default_charset','UTF-8'); e
header(“Content-Type: text/html; charset=ISO-8859-1“,true)
And you didn’t either. Can someone give me some hint?
Have you tried
utf8_decode($message)
?– abfurlan
Hello @abfurlan, yes, I’ve tried this solution and the message is coming out like this: soon
– adventistapr
This doesn’t make sense, See ini_set as utf-8 and sending the headers to the client as ISO (latin1), or one or the other.. Leonardo Bosquett’s answer explains better...
– Olimon F.